Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing Space triggers tabs switching even when activation mode is set to manual #2915

Open
seleckis opened this issue May 23, 2024 · 0 comments

Comments

@seleckis
Copy link

seleckis commented May 23, 2024

Bug report

Current Behavior

I'm trying to make titles of tabs editable. activationMode is set to manual. While editing an input inside tabs trigger, when typing Space, it activates the tab where the input is being edited. I tried to add asChild prop to Trigger and wrap input in span to get rid of button element, but it doesn't help.

Expected behavior

Space should not activate tab.

Reproducible example

CodeSandbox Template

  1. Put cursor in the first input, and the use Tab to switch to another — tabs content remains "Foo"
  2. Type something but not Space — tabs content remains "Foo"
  3. Type Space — tabs content switches to "Bar".

Your environment

Software Name(s) Version
Radix Package(s) react-tabs 1.0.4
React n/a 18.2.0
Browser Chrome 124.0.6367.209
Assistive tech
Node n/a 18.12.1
npm/yarn yarn 1.22.19
Operating System MacOS 13.6.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant