-
Notifications
You must be signed in to change notification settings - Fork 407
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: FluentButton does not get enabled when its parent fieldset is not disabled any more #698
Comments
ProblemIt seems to be a bug in the
SolutionA solution is to use the <fieldset disabled="@working">
<p>
<FluentButton OnClick="WorkAsync" Disabled="@working">
Work
</FluentButton>
<FluentButton Disabled="@working">
Button for Testing
</FluentButton>
<button>Button for Testing</button>
</p>
</fieldset> |
I recreated the bug on the FAST repo to see if we can get a fix from there: microsoft/fast#6831 |
Closing this. Work around provided, formal solution will come from web-components script |
Hi @vnbaaij and team, can we please get an update on this? If I understand correctly, it appears there was a PR submitted to resolve this issue in the lower layer: Is there a way to leverage this in this library now? I am implementing the work around but for some reason I am running into problems when I have the It would be ideal to turn off this fieldset functionality to simplify this scenario. Thank you for any assistance you can provide. |
There is not much to update on. The fix you linked is for the next version of the web components. If it's not possible (as far as I know) to backport that to v2. |
Thank you for that update @vnbaaij and the further context. I am particularly interested in what you meant by this:
Are you saying that since this can no longer be backported this is no longer possible? |
Most probably not in our current version of the library. But will be fixed on the Blazor side when we move to the web components v3 with the next major version. |
OK great thank you very much for that update @vnbaaij it is greatly appreciated, along with all your efforts here. 🙏 |
🐛 Bug Report
When a
FluentButton
is inside afieldset
, all of them get disabled when thatfieldset
is disabled which is correct. However when thefieldset
is no longer disabled, theFluentButton
s are still disabled.💻 Repro or Code Sample
🤔 Expected Behavior
The
FluentButton
s should be enabled once the fieldset is not disabled anymore.😯 Current Behavior
The
FluentButton
s are still disabled. The standardbutton
s are for confirming that the code works as intended and they get enabled.💁 Possible Solution
Unknown, I tried adding extra
StateHasChanged
called too but it doesn't work.🔦 Context
🌍 Your Environment
The text was updated successfully, but these errors were encountered: