Looking for a solution to scroll to a specific div when clicking on a tab in Material UI Tabs using UseRef and ScrollTo.
Check out the sandbox link here: https://codesandbox.io/s/exciting-sound-mrw2v
Currently, when I click on Tab 2, I expect it to automatically scroll to the content of Tab 2 while also keeping Tab 1 visible. However, it currently requires two clicks to achieve this. Any tips or suggestions would be greatly appreciated. Thank you!