[Blazor] - Issue calling submitRequest
on data-enhanced form
#58244
Labels
Milestone
submitRequest
on data-enhanced form
#58244
Is there an existing issue for this?
Describe the bug
Calling
requestSubmit
on a form with the data-enhance attribute prints an uncaughtTypeError
to the console. It complains about accessing a member on a null submitter.Expected Behavior
I would expect the navigation to be enhanced, and for the form to post.
Steps To Reproduce
Put this form in an SSR page, and click the button. The error should be printed to console.
Exceptions (if any)
No response
.NET Version
8.0.200
Anything else?
I think the issue is caused by this line not properly checking for null, but I could be mistaken. Not super familiar with how enhanced navigation works internally.
aspnetcore/src/Components/Web.JS/src/Services/NavigationEnhancement.ts
Line 147 in 870eec2
The text was updated successfully, but these errors were encountered: