Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

362
Views
How to disable tab arrow keys navigation Material UI ReactJS?

I am using ReactJS material UI tabs navigation. I want to disable the arrow keys navigation of Tabs in Material UI.

The thing I want is to navigate using Tab key and then after pressing Enter it should open the page under that tab between two <Tabs\>.

And then after Enter it should navigate focus within that tab page using Tab key.

Is this achieveable ? How can I do that ?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Material UI is not providing this type of functionality to navigate with tab key instead of arrow key.

you can just disable the navigation with arrow key but still it focus with arrow key

you can check => https://mui.com/components/tabs/#heading-keyboard-navigation

about 4 years ago · Juan Pablo Isaza Report

0

As @foramkumar-patel has correctly stated, it is not possible to completely disable the arrow key behavior.

However you can still add the tab key navigation.

All you need to do is to add the tabIndex property like this:

<Tab tabIndex={0} label="My tab" />

Here's a working example: https://codesandbox.io/s/basictabs-material-demo-forked-wzs4o?file=/demo.js

Pressing Tab moves forward, but at the last tab it will move to the next tabbable element on a page. Pressing Shift+Tab moves to the previous tab, and off the first tab to the previous tabbable element.

For more info on the tabindex attribute you can look here: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex

Note: the keyboard navigation (either arrow keys or tabs) does not work in Safari on macOS

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!