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

New prop to disable up/down arrow keys for changing tabs #368

Merged
merged 4 commits into from
Feb 6, 2021

Conversation

maumont
Copy link
Contributor

@maumont maumont commented Jan 27, 2021

Some users need to have the default behaviour of pressing up arrow/down arrow (scrolling up/down in the page) even if one of the tabs is focused.

I've added a new prop disableUpDownKeys to <Tabs /> and <UncontrolledTabs /> so only right arrow & left arrow work for changing tabs.

I've also updated the Readme.md and created some tests.

There was an issue already opened for this: #325

Fixes #325

@danez danez merged commit 40ea746 into reactjs:master Feb 6, 2021
@danez
Copy link
Collaborator

danez commented Feb 6, 2021

Thanks

@danez
Copy link
Collaborator

danez commented Feb 6, 2021

🎉 This PR is included in version 3.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@danez danez added the released label Feb 6, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Key up / down arrow -> option to have default behaviour
2 participants