Skip to content
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: Show active tab with autoscroll #5628

Open
AnthonyRuelle opened this issue Apr 22, 2024 · 0 comments
Open

TabView: Show active tab with autoscroll #5628

AnthonyRuelle opened this issue Apr 22, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@AnthonyRuelle
Copy link

Describe the bug

When we put an activeIndex to the TabView and that index is not visible, it is hidden and nothing happens.

Reproducer

https://codesandbox.io/p/sandbox/green-wave-7x2d4y?file=%2Fsrc%2FApp.vue%3A23%2C11

PrimeVue version

3.51.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

All

Steps to reproduce the behavior

  1. Go to the reproduction link with small screen

https://codesandbox.io/p/sandbox/green-wave-7x2d4y?file=%2Fsrc%2FApp.vue%3A23%2C11

(active index = 10 ans not visible by default)

Expected behavior

When the component is mounted, you should check that the current tab is visible and if this is not the case, scroll to display it.

@AnthonyRuelle AnthonyRuelle added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant