-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TabView: Forward button doesnt disappear when the container size varies #6442
TabView: Forward button doesnt disappear when the container size varies #6442
Comments
@jerrin PR is welcome! |
Can you provide a stackblitz link for this issue, i tried but it worked on mine. |
Please fork the Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days. |
Here we go, https://stackblitz.com/edit/vitejs-vite-dthk4c?file=src%2FApp.tsx,src%2Fmain.tsx,package.json I could reproduce the issue consistently on Chrome but not on Firefox. screencast-stackblitz.com-2024.04.22-13_36_20.webm |
I tried at different browsers but still it works on mine. |
Looks like PrimeVue does something similar but not exact |
PrimeVue has one difference that it parses scrollLeft to integer, rest are same. |
That must be the intent of |
Fixed for next release |
Describe the bug
The forward button doesnt disappear for TabView Scrollable component when the container width is set and scrolled to the last tab.
I believe the conditions for the button visibility needs to be adjusted here
Reproducer
https://stackblitz.com/edit/vitejs-vite-dthk4c?file=src%2FApp.tsx,src%2Fmain.tsx,package.json
PrimeReact version
10.6.3
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome
Steps to reproduce the behavior
StockBlitz
example from https://primereact.org/tabview/#scrollablediv
to400px
Expected behavior
Forward button must disappear when scolled to last tab
The text was updated successfully, but these errors were encountered: