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

Commit 22989cb

Browse files
committed
fix(BPopover): check if focus is on trigger bootstrap-vue-next#1352
1 parent 5ca21c4 commit 22989cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/bootstrap-vue-next/src/components/BPopover.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,8 @@ const hideFn = (e: Event) => {
415415
(e?.type === 'update:modelValue' && manualBoolean.value) ||
416416
(isOutside.value &&
417417
triggerIsOutside.value &&
418-
!element.value?.contains(document?.activeElement))
418+
!element.value?.contains(document?.activeElement) &&
419+
!trigger.value?.contains(document?.activeElement))
419420
) {
420421
showState.value = false
421422
nextTick(() => {

0 commit comments

Comments
 (0)