primevue icon indicating copy to clipboard operation
primevue copied to clipboard

TabView: Show active tab with autoscroll

Open AnthonyRuelle opened this issue 1 year ago • 0 comments

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 avatar Apr 22 '24 14:04 AnthonyRuelle