When the first or last x-radio:option has null as value, then keyboard navigation does not work correctly. It skips that option because it thinks that is already reached the end or beginning of the options array (caused by next || all[0] or prev || all.slice(-1)[0]). See screen recordings as a visual example.
When the first or last
x-radio:option
has null as value, then keyboard navigation does not work correctly. It skips that option because it thinks that is already reached the end or beginning of the options array (caused bynext || all[0]
orprev || all.slice(-1)[0]
). See screen recordings as a visual example.https://github.com/user-attachments/assets/aa7cdeed-cf67-415b-b346-ab63b68296bc
https://github.com/user-attachments/assets/22d762b3-a1d0-4e6b-8a9a-43a4249bca3f