Skip to content

Commit f2a9018

Browse files
committed
fix: tooltip not closing when aiming it, closes #851
1 parent f6f9e6f commit f2a9018

File tree

1 file changed

+5
-1
lines changed
  • packages/floating-vue/src/components

1 file changed

+5
-1
lines changed

packages/floating-vue/src/components/Popper.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ export default () => defineComponent({
334334
parentPopper () {
335335
return this[PROVIDE_KEY]?.parentPopper
336336
},
337+
338+
hasPopperShowTriggerHover () {
339+
return this.popperTriggers?.includes('hover') || this.popperShowTriggers?.includes('hover')
340+
},
337341
},
338342

339343
watch: {
@@ -440,7 +444,7 @@ export default () => defineComponent({
440444
}
441445

442446
// Abort if aiming for the popper
443-
if (this.$_isAimingPopper()) {
447+
if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
444448
if (this.parentPopper) {
445449
this.parentPopper.lockedChild = this
446450
clearTimeout(this.parentPopper.lockedChildTimer)

0 commit comments

Comments
 (0)