-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
[Tabs]: bug, Endless update state in updateScrollButtonState #10751
Comments
@tkvw Do you have a reproduction example? |
@oliviertassinari : no, this happens inside my application. When I have time I can try to create an example, hoped the debugging screenshot was clear enough. |
It happens on |
Your issue has been closed because it does not conform to our issue requirements. |
When the clientwidth is of a specific width the
Tabs
component with a couple of tabs, the Tabs component will callupdateScrollButtonState
in an endless loop. This happens because the clientWidth changes when the state is changed to visible/hidden.The component should take this additional space into consideration when setting
showRightScroll
andshowLeftScroll
. In this screenshot you see each step and thatshowRightScroll
is changed after each step and is causing the endless loop.The text was updated successfully, but these errors were encountered: