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
Rendering a RadioGroup with no value selected, and clicking the label, does not cause the group to select the associated element.
This appears to be caused by #927 - if you comment out the fix for #onFocus, this works.
In the provided example, I couldn't get styles working, but observe that clicking labels does nothing until a button is clicked, at which point label clicks work as expected.
Here's a wrinkle, based on how the radio group is implemented - is it possible to distinguish a focus event from a label click from a focus event caused by any other element? It appears that the focus event from label click is what causes label clicks to select under normal (already selected) circumstances.
Describe the bug
Rendering a
RadioGroup
with no value selected, and clicking the label, does not cause the group to select the associated element.This appears to be caused by #927 - if you comment out the fix for
#onFocus
, this works.In the provided example, I couldn't get styles working, but observe that clicking labels does nothing until a button is clicked, at which point label clicks work as expected.
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-6hzbto?file=src%2Froutes%2F%2Bpage.svelte
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: