-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -392,6 +392,10 @@ export default () => ({ | |
|
||
this.$_pendingHide = false | ||
if (force || !this.disabled) { | ||
if (this.parentPopper?.lockedChild === this) { | ||
this.parentPopper.lockedChild = null | ||
} | ||
|
||
this.$_scheduleShow(event, skipDelay) | ||
this.$emit('show') | ||
|
||
|
@@ -417,6 +421,13 @@ export default () => ({ | |
if (this.$_isAimingPopper()) { | ||
if (this.parentPopper) { | ||
this.parentPopper.lockedChild = this | ||
clearTimeout(this.parentPopper.lockedChildTimer) | ||
this.parentPopper.lockedChildTimer = setTimeout(() => { | ||
if (this.parentPopper.lockedChild === this) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Moerliy
|
||
this.parentPopper.lockedChild.hide({ skipDelay }) | ||
this.parentPopper.lockedChild = null | ||
} | ||
}, 1000) | ||
} | ||
return | ||
} | ||
|
In the latest code's comment:
// Abort if aiming for the popper
, so if the aiming current is the popper(which means it should stay open, right, because we just move cursor from the reference to the popper element.? why closingthis
after one second? (this.parentPopper.lockedChild === this
)Seems change
if (this.parentPopper.lockedChild === this) {
toif (this.parentPopper.lockedChild !== this) {
works fine.