From b08d91a21830a92e6c04efaded013b0507bcb095 Mon Sep 17 00:00:00 2001 From: mostafametwally Date: Thu, 22 Feb 2024 00:33:45 +0100 Subject: [PATCH] handle focus error on blazor web assembly when verifying email address --- Oqtane.Client/Modules/Admin/Login/Index.razor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Oqtane.Client/Modules/Admin/Login/Index.razor b/Oqtane.Client/Modules/Admin/Login/Index.razor index f59834f8..eec57ca8 100644 --- a/Oqtane.Client/Modules/Admin/Login/Index.razor +++ b/Oqtane.Client/Modules/Admin/Login/Index.razor @@ -166,7 +166,8 @@ { if (firstRender && PageState.User == null && _allowsitelogin) { - await username.FocusAsync(); + if(!string.IsNullOrEmpty(username.Id)) + await username.FocusAsync(); } // redirect logged in user to specified page