Select: return when query is null

pull/7189/head
Leopoldthecoder 2017-09-23 15:05:20 +08:00 committed by 杨奕
parent ffe6b8933c
commit 7b8250b4e2
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@
}, },
query(val) { query(val) {
if (val === null || val === undefined) return;
this.$nextTick(() => { this.$nextTick(() => {
if (this.visible) this.broadcast('ElSelectDropdown', 'updatePopper'); if (this.visible) this.broadcast('ElSelectDropdown', 'updatePopper');
}); });