Skip to content

Tab index 0 is set on every radio input inside a popover when interacting via keyboard #1140

@rmales

Description

@rmales

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v1.4.3

What browser are you using?

N/A

Reproduction URL

https://codesandbox.io/s/funny-field-zp1cie?file=/src/App.js

Describe your issue

When I have radio inputs inside a popover and I open the popover via the keyboard and tab to them, all the radio inputs have their tab index attribute set to zero. This inserts them into the tab order, which is not expected as groups of radio inputs are normally navigated using the arrows keys (as I'm sure you're aware). I guess this is more an annoyance than a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions