Skip to content

bug: Radio group tab navigation is incorrect for modern form control syntax #27268

Closed

Description

@sean-perkins

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

In v7 the tab navigation for ion-radio-group is incorrect with the modern form syntax.

Pressing Tab will focus the next available ion-radio in the group. Once reaching the last radio, it will advance to focus the next available radio in the nearest ion-radio-group.

Legacy Modern
Kapture.2023-04-24.at.16.27.41.mp4
Kapture.2023-04-24.at.16.28.40.mp4

Expected Behavior

Pressing Tab should focus the next available option in the nearest ion-radio-group. It should not advance to the next ion-radio in the current group. The up/down arrow keys should be responsible for that behavior.

Steps to Reproduce

  1. Render multiple radio groups with the modern form syntax
  2. Press Tab (repeatedly)
  3. Observe: The next ion-radio is focused in the group
  4. Observe: The focus will change between the radio groups after reaching the last radio in the group.

If using the reproduction, run the app and you can click the "Legacy Syntax" or "Modern Syntax" item to experiment with the different syntax and Tab key behavior.

Code Reproduction URL

https://github.com/sean-perkins/ionic-radio-group-tabs-bug

Ionic Info

N/A

Additional Information

The modern form control syntax likely needs the same tabindex="-1" assigned on the input as the legacy syntax does.

Activity

  1. added
    package: core
    type: bug
    on Apr 24, 2023
  2. added a commit that references this issue on May 31, 2023
    d87e692
  3. thetaPC commented on Jun 7, 2023

    @thetaPC
    Contributor

    Thank you for the issue! The fix has been released in v7.0.11.

  4. ionitron-bot commented on Jul 7, 2023

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  5. locked and limited conversation to collaborators on Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: coretype: bug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions