fix clickoutside bug

pull/5899/head
baiyaaaaa 2017-07-17 16:14:34 +08:00 committed by 杨奕
parent 383e3a5f93
commit 67188f45b6
2 changed files with 2 additions and 2 deletions

View File

@ -123,10 +123,8 @@
},
handleChange(value) {
this.$emit('input', value);
this.activated = true;
if (this.isOnComposition || (!this.triggerOnFocus && !value)) {
this.suggestions = [];
this.activated = false;
return;
}
this.getData(value);

View File

@ -27,6 +27,8 @@ export default {
!mouseup.target ||
!mousedown.target ||
el.contains(mouseup.target) ||
el.contains(mousedown.target) ||
el === mouseup.target ||
(vnode.context.popperElm &&
(vnode.context.popperElm.contains(mouseup.target) ||
vnode.context.popperElm.contains(mousedown.target)))) return;