-
Notifications
You must be signed in to change notification settings - Fork 386
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
fix: Fluent Checkbox events get called infinitely in a Fluent Tab #2356
Comments
It is the Tab component that is causing this. Without it the checkbox can be set/unset fine. As the Tab relies on the underlying web component script and they are busy working on the next version (see microsoft/fast#6955). I'm not expecting a fix for this anytime soon (if at all). I suggest you look for a different mechanism of displaying your UI instead of with Tabs |
@vnbaaij In the example above if you remove |
Good find! Really weird as a Stack is nothing more than a div with some styling... |
@vnbaaij I think it is the use nested of |
🐛 Bug Report
Having a
FluentCheckbox
(or aFluentSwitch
) inside aFluentStack
inside a component which is inside aFluentTab
(or possibly aRenderFragment
) on the current component cause theValueChanged
event to be called infinitely setting and unsetting the value. This happens when theValueChanged
is set manually.💻 Repro or Code Sample
CheckboxBug.razor
Index.razor
Dummy.cs
🤔 Expected Behavior
The bool value should be changed.
😯 Current Behavior
The checkbox checks and unchecks infinitely.
ValueChanged
is called multiple times.💁 Possible Solution
🔦 Context
Trying to change multiple
bool
properties of arecord
with a specific component.🌍 Your Environment
The text was updated successfully, but these errors were encountered: