Commit c1ce7a21 authored by laobubu's avatar laobubu Committed by 杨奕

Popover: fix: delayed popover appears after mouse left

parent 513c90fd
......@@ -109,16 +109,17 @@ export default {
this.showPopper = false;
},
handleMouseEnter() {
clearTimeout(this._timer);
if (this.openDelay) {
setTimeout(() => {
this._timer = setTimeout(() => {
this.showPopper = true;
}, this.openDelay);
} else {
this.showPopper = true;
}
clearTimeout(this._timer);
},
handleMouseLeave() {
clearTimeout(this._timer);
this._timer = setTimeout(() => {
this.showPopper = false;
}, 200);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment