Popover: fix manual trigger

pull/8473/head
Leopoldthecoder 2017-11-23 18:11:14 +08:00 committed by 杨奕
parent 7120490d3e
commit 9cfdc433c3
1 changed files with 3 additions and 3 deletions

View File

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