8000 BAccordion issue when using v-model · Issue #2497 · bootstrap-vue-next/bootstrap-vue-next · GitHub
[go: up one dir, main page]

Skip to content
BAccordion issue when using v-model  #2497
Closed
@ptdev

Description

@ptdev

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstaleThere has been no additional replies or questions and the thread is assumed closed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0