Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/bitfoundation/bitplatform
Browse files Browse the repository at this point in the history
…into release
  • Loading branch information
ysmoradi committed May 26, 2024
2 parents 2bcef60 + 1ba9364 commit c248eac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
12 changes: 0 additions & 12 deletions src/BlazorUI/Bit.BlazorUI/Components/Inputs/BitInputBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,6 @@ protected void RegisterFieldIdentifier<TField>(Expression<Func<TField>>? valueEx
return;
}

if (valueExpression?.Body is not null && valueExpression!.Body is MemberExpression memberExpression)
{
var memberInfo = memberExpression.Member;
var prop = memberInfo.DeclaringType?.GetProperty(memberInfo.Name);
if (prop is not null)
{
var infoContext = new NullabilityInfoContext().Create(prop);
_isUnderlyingTypeNullable = infoContext.ReadState is NullabilityState.Nullable;
return;
}
}

_isUnderlyingTypeNullable = default(TValue) is null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
dir="@Dir?.ToString().ToLower()">
@if (LabelTemplate is not null)
{
<div id="@_labelId">
<label id="@_labelId">
@LabelTemplate
</div>
</label>
}
else if (Label.HasValue())
{
<div style="@Styles?.Label" class="bit-prb-lbl @Classes?.Label" id="@_labelId">
<label style="@Styles?.Label" class="bit-prb-lbl @Classes?.Label" id="@_labelId">
@Label
</div>
</label>
}

@if (ShowPercentNumber && Indeterminate is false)
Expand Down

0 comments on commit c248eac

Please sign in to comment.