Skip to content

Commit

Permalink
Fix name warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stsrki committed Jun 28, 2024
1 parent 1581b6f commit 52b4d33
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Source/Blazorise/Base/BaseInputComponent.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Blazorise.Modules;
using Blazorise.Utilities;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Forms;
using Microsoft.AspNetCore.Components.Web;
#endregion

Expand Down Expand Up @@ -70,11 +69,11 @@ public override async Task SetParametersAsync( ParameterView parameters )
await base.SetParametersAsync( parameters );

// For modals we need to make sure that autofocus is applied every time the modal is opened.
if ( parameters.TryGetValue<bool>( nameof( Autofocus ), out var autofocus ) && this.autofocus != autofocus )
if ( parameters.TryGetValue<bool>( nameof( Autofocus ), out var paramAutofocus ) && autofocus != paramAutofocus )
{
this.autofocus = autofocus;
autofocus = paramAutofocus;

if ( autofocus )
if ( paramAutofocus )
{
if ( ParentFocusableContainer is not null )
{
Expand Down

0 comments on commit 52b4d33

Please sign in to comment.