You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an <sl-radio-group> with required set to true, it is not possible to select <sl-radio> elements that do not have a value property set when clicking on the item the first time.
Select a valid option (all options except the second one) and submit. Everything should be fine.
Try to click the second radio. You will see it does nothing.
Try to click the second radio again. It will now select the value and will be invalid.
Browser / OS
OS: [e.g. Mac, Windows] All
Browser: [e.g. Chrome, Firefox, Safari] All
Browser version: [e.g. 22] All
Additional information
We ran into this while writing a generic custom validation wrapper component (what a word!) for our shoelace based design system (which by the way, may also be of interest for you?) and initially thought this would be an implementation problem on our side.
Although I have not looked into this issue for now, would be happy to provide a PR for this if requested.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using an
<sl-radio-group>
withrequired
set to true, it is not possible to select<sl-radio>
elements that do not have avalue
property set when clicking on the item the first time.To Reproduce
Steps to reproduce the behavior:
<sl-ragio-group>
with a custom<sl-radio>
that has no value set.Browser / OS
Additional information
We ran into this while writing a generic custom validation wrapper component (what a word!) for our shoelace based design system (which by the way, may also be of interest for you?) and initially thought this would be an implementation problem on our side.
Although I have not looked into this issue for now, would be happy to provide a PR for this if requested.
The text was updated successfully, but these errors were encountered: