Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle focus error on blazor web assembly when verifying email address #3869

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

pyramidsbuilder
Copy link
Contributor

How to reproduce:
1- set the site render mode to blazor web assembly
2- register as new user
3- Open the email verification link

result:
Error : System.AggregateException: One or more errors occurred. (ElementReference has not been configured correctly.)
---> System.InvalidOperationException: ElementReference has not been configured correctly.
at Microsoft.AspNetCore.Components.ElementReferenceExtensions.GetJSRuntime(ElementReference elementReference)
at Microsoft.AspNetCore.Components.ElementReferenceExtensions.FocusAsync(ElementReference elementReference, Boolean preventScroll)
at Microsoft.AspNetCore.Components.ElementReferenceExtensions.FocusAsync(ElementReference elementReference)
at Oqtane.Modules.Admin.Login.Index.OnAfterRenderAsync(Boolean firstRender) in C:\server\opensource\Oqtane\oqtane.framework\Oqtane.Client\Modules\Admin\Login\Index.razor:line 182
--- End of inner exception stack trace ---

solution for now:
handle the null reference of the username element reference

@sbwalker
Copy link
Member

@pyramidsbuilder do you have any idea why the username ElementReference is not configured correctly in this scenario?

@pyramidsbuilder
Copy link
Contributor Author

@sbwalker sorry I don't know

@sbwalker sbwalker merged commit c80c212 into oqtane:dev Feb 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants