Skip to content

a-radio-group doesn't allow me to select an option with tab, only arrows #6964

@busybox11

Description

@busybox11
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.0.1

Environment

Vue 3,3,4

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  • Open the minimal reproduction
  • Try to navigate in the form only using the tab key on the keyboard (first select the first input element)

What is expected?

The navigation should go through the first input, then the first radio group item, then the second, and finally the last text input

What is actually happening?

The navigation goes through the first input, the first radio group item ONLY and finally the last text input.

Although this behavior is not inherently wrong, an option should be provided to make it work on-demand - especially when you use the radio group styled as buttons.


The current behavior that permits to select an option from the keyboard only is to use the arrow keys.
Alternatively, trying to set tabindex on the radio-button items will make it work but will also select every radio item twice, one time per tab keypress.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions