Commit 9cfdc433 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

Popover: fix manual trigger

parent 7120490d
...@@ -131,14 +131,14 @@ export default { ...@@ -131,14 +131,14 @@ export default {
}, },
handleFocus() { handleFocus() {
addClass(this.referenceElm, 'focusing'); addClass(this.referenceElm, 'focusing');
this.showPopper = true; if (this.trigger !== 'manual') this.showPopper = true;
}, },
handleClick() { handleClick() {
removeClass(this.referenceElm, 'focusing'); removeClass(this.referenceElm, 'focusing');
}, },
handleBlur() { handleBlur() {
removeClass(this.referenceElm, 'focusing'); removeClass(this.referenceElm, 'focusing');
this.showPopper = false; if (this.trigger !== 'manual') this.showPopper = false;
}, },
handleMouseEnter() { handleMouseEnter() {
clearTimeout(this._timer); clearTimeout(this._timer);
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
} }
}, },
handleKeydown(ev) { handleKeydown(ev) {
if (ev.keyCode === 27) { // esc if (ev.keyCode === 27 && this.trigger !== 'manual') { // esc
this.doClose(); this.doClose();
} }
}, },
......
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