Closed
Description
Describe the bug
Hi,
When using BAccordion with v-model, the last opened accordion item always gets selected on the model, even after closing the relevant accordion.
In my opinion, when closing an accordion item, the model should be updated to reflect that the accordion item is not active.
So, if we open an accordion item, the model gets updated to the correct accordionitem id, but when we close it (so that all accordion items are closed and none is visible) the model variable still states that the last item that was opened is active.
The reproduction link should help visualize this a bit better.
Cheers
Reproduction
https://stackblitz.com/edit/nuxt-starter-evsrdkcg?file=pages%2Findex.vue
Used Package Manager
yarn