Bug: Accordion using dynamic tabs and :multiple="true"
keep incorrect tabs expanded when changed
#2524
Labels
Status: Discussion
Issue or pull request needs to be discussed by Core Team
I'm submitting a ... (check one with "x")
CodeSandbox Case (Bug Reports)
Bug behavior is reproduced at https://codesandbox.io/s/dreamy-architecture-mbej6m?file=/index.html
Current behavior
When I have an Accordion with
:multiple="true"
using dynamic tabs, the tab will stay open by index instead of keeping state with specific item.Expected behavior
I expect the accordion to keep items open by the specific item instead of index. This is because if I add a new item, I want each item to keep its state.
Minimal reproduction of the problem with instructions
https://codesandbox.io/s/dreamy-architecture-mbej6m?file=/index.html
Accordion.Bug.mov
What is the motivation / use case for changing the behavior?
We use the Accordion to show a list of events. When a new event occurs, we add the event as a new tab. If a tab was open at a specific index, it will now display it's open state based on it's new index, not the specific item.
Please tell us about your environment:
See codesandbox environment
Vue version: 3.X
Vue@next via unpkg script src
PrimeVue version: 3.12.X
Version 3 via unpkg script src
Browser:
Chrome 100.0.4896.127 Mac OS 12.0.1
The text was updated successfully, but these errors were encountered: