Open esharri2 opened 1 week ago
🤔 Feels like it would need to check all radios based on [name]
in the current rootNode
and if none of them are checked, it would allow focusing the first. If the radio has no name, it should always be focusable.
This should also be el.checked
and not el.hasAttribute("checked")
.
@KonnorRogers I added the fixed-in-wa label because we use <dialog>
there and the problem doesn't exist.
Describe the bug
If you use a native radio button group inside of the
sl-dialog
component, and there is noinput
with achecked
attribute, it cannot be focused via the TAB key.To Reproduce
Steps to reproduce the behavior:
Demo
https://codepen.io/esharri2/pen/wvVbZXz
Screenshots
N/A
Browser / OS
Additional information