🌐 AI搜索 & 代理 主页
Skip to content

b-v-toggle does not appear to work with a click handler #5475

@mangyvr

Description

@mangyvr

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce the bug

We have a link that shows a b-collapse element like this:

    <b-card-header header-tag="header" role="tab">
          <a v-b-toggle="'week-' + i" href="#" @click="getDefaults">{{week.dates.join(' - ')}}</a> 
    </b-card-header>
    <b-collapse :id="'week-' + i" accordion="weeks" role="tabpanel" @show="getDefaults">

Toggling visibility of the b-collapse element doesn't work unless we remove the @click directive (or set it to have no handler, like in the examples.)

Expected behavior

Clicking the link should show/hide the b-collapse element, even with an @click handler.

Versions

Libraries:

  • BootstrapVue: 2.15.0
  • Bootstrap: 4.5.0
  • Vue: 2.6.11

Environment:

  • OS: Linux
  • Browser: Firefox
  • Version: 76.0.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions