Closed
Description
Since v2.21.0, adding a click event to a <b-badge> component no longer works.
Example:
<div id="app">
<b-badge style="cursor: pointer;" @click="clickme">Test</b-badge>
</div>
new Vue({
el: "#app",
methods: {
clickme() {
console.log("CLICKED!");
}
}
});
If I click the badge, nothing gets written to the console.
If I downgrade to bootstrap-vue v2.20.1 then the same code would output "CLICKED!" as expected.
If I modify the badge to use @click.native, this also seems to fix it.
Environment:
- bootstrap 4.5.3
- vue 2.6.12
- bootstrap-vue 2.21.0