mirror of https://github.com/ElemeFE/element
Option: Fix #3728 bug
Select component with remote search clears what you typed when the value for each el-option is an objectpull/3906/head
parent
394bc47af1
commit
b9e3e7faef
|
@ -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');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue