Skip to content

[BUG]: CardElement not focusing next element on forward tab when within iframe  #384

Open
@andy-hook

Description

What happened?

After forward tabbing through the CardElement if the next focusable element is within an iframe then it will be skipped.

My use case is that I'm combining the AddressElement with CardElement and the former renders it's inputs within an iframe, breaking keyboard accessibility if CardElement appears before.

Environment

Chrome 107.0.5304.110 (Official Build) (arm64) on MacBook 12.6 (21G115)

Reproduction

https://codesandbox.io/s/stripe-card-element-tab-focus-fs30nu?file=/src/CardForm.tsx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpinned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions