-
Bug
-
Resolution: Fixed
-
Normal
-
8.0.4
-
None
-
Security Level: Jimmy
-
None
-
None
steps to reproduce
- load the zul
- focus on the 1st textbox
- press tab 1 time
- check document.activeElement in the console
current result
- focus on <span class="z-radio" tabindex="2"></span>
- when pressing left/right arrow key, we can't move selected radio
- chrome, firefox, and edge have the same behavior.
expected result
- focus on <input type="radio">
- users can move selected radio by arrow keys
debug info
- Due to <radio> also renders tabindex on both <span> and <input>, so it requires pressing 1 more tab. If I remove the tabindex on the <span>, it works as expected.
<span id="vYHW4" class="z-radio" tabindex="2"><input type="radio" id="vYHW4-real" name="_pg79o4dn" tabindex="2" checked="checked"><label for="vYHW4-real" id="vYHW4-cnt" class="z-radio-content">yes</label></span>