Merge pull request #3869 from pyramidsbuilder/fix-loginpage-focus-for-ws

handle focus error on blazor web assembly when verifying email address
This commit is contained in:
Shaun Walker 2024-02-23 15:53:18 -05:00 committed by GitHub
commit c80c212a54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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