You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by DaBe1812 February 28, 2024
I have a dynamic TabView getting it's content from a List<>.
Opening new tabs works just fine, switching between those tabs updates the ActiveIndex correctly.
Let's pretend I have 6 open tabs, so the last index ist 5. When I close tab no 2 then the last index stays 5 switching the tabs skips TabIndex 1. When I want to clear my List by closing tabs this is a problem becase the indexes in the list differ from the indexes of the tabs.
Is there a way to update the tab indexes or a workaround for this issue?
Discussed in https://github.com/orgs/primefaces/discussions/1320
Originally posted by DaBe1812 February 28, 2024
I have a dynamic TabView getting it's content from a List<>.
Opening new tabs works just fine, switching between those tabs updates the ActiveIndex correctly.
Let's pretend I have 6 open tabs, so the last index ist 5. When I close tab no 2 then the last index stays 5 switching the tabs skips TabIndex 1. When I want to clear my List by closing tabs this is a problem becase the indexes in the list differ from the indexes of the tabs.
Is there a way to update the tab indexes or a workaround for this issue?
Workaround from Raptser:
The text was updated successfully, but these errors were encountered: