Skip to content

Commit

Permalink
Fixed LabelTypeEffective instead of the actual LabelType property
Browse files Browse the repository at this point in the history
  • Loading branch information
mmonteagudo authored and hakenr committed Nov 26, 2024
1 parent f0271e9 commit c2c929e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Havit.Blazor.Components.Web.Bootstrap/Forms/HxInputDate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public class HxInputDate<TValue> : HxInputBase<TValue>, IInputWithPlaceholder, I
protected LabelType LabelTypeEffective => LabelType ?? GetSettings()?.LabelType ?? GetDefaults()?.LabelType ?? HxSetup.Defaults.LabelType;
LabelType IInputWithLabelType.LabelTypeEffective => LabelTypeEffective;

protected override LabelValueRenderOrder RenderOrder => (LabelType == Bootstrap.LabelType.Floating) ? LabelValueRenderOrder.ValueOnly /* label rendered by HxInputDateInternal */ : LabelValueRenderOrder.LabelValue;
protected override LabelValueRenderOrder RenderOrder => (LabelTypeEffective == Bootstrap.LabelType.Floating) ? LabelValueRenderOrder.ValueOnly /* label rendered by HxInputDateInternal */ : LabelValueRenderOrder.LabelValue;

/// <summary>
/// Custom CSS class to render with the input-group span.
Expand Down

0 comments on commit c2c929e

Please sign in to comment.