Megabit / Blazorise

Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.
https://blazorise.com/
Other
3.26k stars 526 forks source link

[Bug]: RadioGroup `Disabled` parameter does nothing #5152

Closed TechnoPorg closed 1 week ago

TechnoPorg commented 9 months ago

Blazorise Version

1.3.3

What Blazorise provider are you running on?

Bootstrap5

Link to minimal reproduction, or a simple code snippet

image

Steps to reproduce

Create a RadioGroup with the Disabled parameter set to true. Put several Radio elements in it and see that they can all still be selected and interacted with. Then, set the Disabled property on each individual Radio to true. They are now disabled as expected.

What is expected?

Disabling a RadioGroup should disable all the Radio buttons inside the group.

What is actually happening?

Disabling a RadioGroup does nothing, and all the Radio buttons have to be individually disabled, which results in a lot of unnecessary code.

What browsers are you seeing the problem on?

No response

Any additional comments?

No response

David-Moreira commented 9 months ago

I believe it might be because they are not a real group. Can you add the name parameter and try again? Please refer to the documentation. https://blazorise.com/docs/components/radio

TechnoPorg commented 9 months ago

I'm afraid that even with the name parameter, it is still not disabling the radio buttons. image image Doing a code search through Source/Blazorise/Components/Radio for the search term "Disabled" only yields one result, in Radio.razor, so I don't think it's implemented in RadioGroup.