TabMenu doesn't scroll to active item when it's set programatically #15973
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When TabMenu's activeItem is set from the code and there are more items then can be displayed on the screen (scrolling is needed and enabled), and the activeItem is not currently visible on the screen, then scrolling doesn't occur.
Environment
Tested on both PrimeNG v16.9.12-lts and 17.18.3 and the behaviour is the same.
Reproducer
https://stackblitz.com/edit/pvzkh6?file=src%2Fapp%2Fdemo%2Ftab-menu-scrollable-demo.ts
Angular version
16.2.0
PrimeNG version
16.9.12-lts
Build / Runtime
TypeScript
Language
TypeScript
Node version (for AoT issues node --version)
18.20.3
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: