-
Notifications
You must be signed in to change notification settings - Fork 10k
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
.NET 8 Blazor - OnChange() Migration To Static Rendering #54018
Comments
@sbwalker thanks for contacting us. The recommended approach on those situations is to use interactivity and avoid SSR or use JS to hook into the change event via JS. It's a non-goal to make every interactive scenario possible via SSR. It's up to the developer to choose when to apply each, but in general, SSR interactivity is limited to forms, which is the only thing that works without JS. |
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes. See our Issue Management Policies for more information. |
Is there an existing issue for this?
Describe the bug
When migrating Blazor component logic to utilize the Static rendering approach, you need to replace interactive event handlers with static equivalents.
For example, for
@onclick
events:you can use a form-based approach:
However for
@onchange
events:There are currently no recommendations or functional examples.
Expected Behavior
Provide documentation examples on the recommended approach for migrating interactive
@onchange
events to static alternatives.Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
8.0.1
Anything else?
No response
The text was updated successfully, but these errors were encountered: