Tabs not scroling to the correct tab after navigation #44211
Labels
component: tabs
This is the name of the generic UI component, not the React module!
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/still-snow-z385rn
Steps:
Make sure to set browser width smaller then the tabs container.
You can here see a small green line and the tab is not in view.
With scrollButtons={true} it works
Current behavior
The selected tab is not in view.
Expected behavior
The selected tab is in view.
Context
We have dynamic tabs and device sizes, and we dont want arrows all the time, but not scrolling the selected tab into view is causing out users to be confused, would be nice if the tabs component scrolled to the selected tab
Your environment
npx @mui/envinfo
Search keywords: tabs scroll
The text was updated successfully, but these errors were encountered: