-
Notifications
You must be signed in to change notification settings - Fork 312
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Cyclical, uncontrolled input value changes when using Fast input components in Blazor Server #304
Comments
vnbaaij
added a commit
that referenced
this issue
Jan 30, 2023
FluentInputBase: _hasInitialized... requires @bind-Value Reboot.css: Inherit font-family for headers
vnbaaij
added a commit
that referenced
this issue
Jan 31, 2023
vnbaaij
added a commit
that referenced
this issue
Jan 31, 2023
Make more custom event work (Accordion, tooltip, menu, dialog) Ignore publish dir
vnbaaij
added a commit
that referenced
this issue
Jan 31, 2023
Make more custom event work (Accordion, tooltip, menu, dialog) Ignore publish dir
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
馃悰 Bug Report
When using Blazor server (particularly when there is high latency between the server and the browser), Fast input controls may rapidly cycle between values previously provided by the user.
The most straightforward example of this is when using the
<FluentRadioGroup>
and<FluentRadio>
components, but #152 seems to indicate that other Fast input components are impacted by this bug as well.If the user clicks two radio buttons before the server is able to handle the first click and re-render the parent component, then the component gets stuck in a loop, cycling between having the first and second radio options selected. If you then click a third radio button as this is happening, that button gets added to the cycle.
I haven't been able to get to the bottom of why this is happening, but I have a theory:
ValueChanged
callback was registered) and sends off a new render batch to the browser.It should be noted that the
<InputRadio>
component fromMicrosoft.AspNetCore.Components.Forms
does NOT exhibit this behavior.Screen recording:
fast_blazor_inf_loop.mp4
馃捇 Repro or Code Sample
Microsoft.Fast.Components.FluentUI
, version 2.0.2.Index.razor
with the following:馃 Expected Behavior
When the UI finishes rendering, the second radio button is selected.
馃槸 Current Behavior
The UI continuously re-renders, alternating between having the first and second radio buttons selected.
馃拋 Possible Solution
Don't notify .NET about changes to radio button selection unless they were initiated by a click (or touch) event.
馃實 Your Environment
The text was updated successfully, but these errors were encountered: