-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Bug]: Tabs do not have left scroll button when scrolled to the right side #9698
Comments
I suspect this is related to the changes to the
This also potentially explains why it works in the storybook, it's using React 16. Here's a nice succinct post on the situation. I think we could try moving the |
I am seeing an issue with this fix. Now when I scroll tabs left or right a few times the app crashes (this test app does not have an onError catcher like our prod apps).
|
Thanks so much for the heads up, @dabrad26. I went and changed our latest tag to point to the previous stable release until we can hotfix this on Monday. |
The issue still occurs ... carbon components 7.54 version |
@mateBe95 I can't remember if we chatted on slack or not - if not, could you open a new issue for this and include a sandbox reproduction? Thanks! |
The issue still appear whenever user resize instead of scrolling @tay1orjones |
Package
carbon-components, carbon-components-react
Browser
Safari
Package version
10.43.0, 7.43.0
Description
When a user scrolls tabs the left scroll arrow does not appear unless a resize event happens to the page (when the scroll position for the tabs is not 0 on the left).
I found that using older React (like Sandbox defaulted to) worked but would throw a ton of errors. Using latest react (17.0.2) did not have errors but did not show the arrow unless I resized.
See recording here:
Project reference: IBM Aspera
CodeSandbox example
https://codesandbox.io/s/sleepy-ardinghelli-y8pry
Steps to reproduce
Scroll list with either the right arrow or a trackpad. The left arrow does not appear when content goes off screen. However, a resize event of window will trigger it to appear.
Expected: The arrow appears as soon as Tabs container is not left scrolled at 0.
Code of Conduct
The text was updated successfully, but these errors were encountered: