Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 8eb7371

Browse files
committed
fix(BNavItem): BNavItem emitting click event when disabled fixes bootstrap-vue-next#1284
1 parent 1413727 commit 8eb7371

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/bootstrap-vue-next/src/components/BNav/BNavItem.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:active-class="activeClass ?? 'active'"
88
:tabindex="disabledBoolean ? -1 : undefined"
99
:aria-disabled="disabledBoolean ? true : undefined"
10+
@click.stop="emit('click', $event)"
1011
>
1112
<slot />
1213
</BLink>
@@ -61,6 +62,10 @@ const props = withDefaults(
6162
}
6263
)
6364
65+
const emit = defineEmits<{
66+
click: [value: MouseEvent]
67+
}>()
68+
6469
const disabledBoolean = useBooleanish(() => props.disabled)
6570
6671
const linkProps = computed(() =>

0 commit comments

Comments
 (0)