Skip to content
Prev Previous commit
Next Next commit
chore(*): coderabbit suggestions
  • Loading branch information
desmondinho committed Jan 4, 2026
commit 20abe86962406c157de0d72c70c8ed2f249bf416
10 changes: 5 additions & 5 deletions src/LumexUI/Components/Bases/LumexInputFieldBase.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public abstract partial class LumexInputFieldBase<TValue> : LumexInputBase<TValu
[Inject] private IJSRuntime JSRuntime { get; set; } = default!;

/// <summary>
/// Gets or sets the validation error mesage of the input.
/// Gets or sets the validation error message of the input.
/// </summary>
protected string? ValidationMessage { get; private set; }

Expand Down Expand Up @@ -203,11 +203,11 @@ protected override async Task OnAfterRenderAsync( bool firstRender )
if( firstRender )
{
_jsModule = await JSRuntime.InvokeAsync<IJSObjectReference>( "import", JavaScriptFile );
}

if( Autofocus )
{
await FocusAsync();
if( Autofocus )
{
await FocusAsync();
}
}
}

Expand Down
13 changes: 11 additions & 2 deletions src/LumexUI/Components/Datebox/LumexDatebox.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,17 @@
namespace LumexUI;

/// <summary>
/// A component that represents an input field for entering <see cref="DateTime"/> values.
/// A component that represents an input field for entering date values.
/// </summary>
/// <remarks>
/// The supported types for the date value are:
/// <list type="bullet">
/// <item><description><see cref="DateTime"/></description></item>
/// <item><description><see cref="DateTimeOffset"/></description></item>
/// <item><description><see cref="DateOnly"/></description></item>
/// <item><description><see cref="TimeOnly"/></description></item>
/// </list>
/// </remarks>
public partial class LumexDatebox<TValue> : LumexInputFieldBase<TValue>
{
private const string DateFormat = "yyyy-MM-dd"; // Compatible with HTML 'date' inputs
Expand Down Expand Up @@ -70,10 +79,10 @@ protected override void OnParametersSet()
};
}

// Datebox should always look 'focused'.
/// <inheritdoc />
protected override async Task OnBlurAsync( FocusEventArgs args )
{
// Datebox should always look 'focused'.
await OnBlur.InvokeAsync( args );
}

Expand Down