Option: Fix #3728 bug

Select component with remote search clears what you typed when the value for each el-option is an object
pull/3906/head
Semen Levenson 2017-03-29 13:57:10 +03:00 committed by 杨奕
parent 394bc47af1
commit b9e3e7faef
1 changed files with 2 additions and 2 deletions

View File

@ -84,10 +84,10 @@
watch: { watch: {
currentLabel() { currentLabel() {
if (!this.created) this.dispatch('ElSelect', 'setSelected'); if (!this.created && !this.parent.remote) this.dispatch('ElSelect', 'setSelected');
}, },
value() { value() {
if (!this.created) this.dispatch('ElSelect', 'setSelected'); if (!this.created && !this.parent.remote) this.dispatch('ElSelect', 'setSelected');
} }
}, },