We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cbe3f3 commit 9686ccaCopy full SHA for 9686cca
packages/select/src/option.vue
@@ -86,8 +86,14 @@
86
currentLabel() {
87
if (!this.created && !this.select.remote) this.dispatch('ElSelect', 'setSelected');
88
},
89
- value() {
90
- if (!this.created && !this.select.remote) this.dispatch('ElSelect', 'setSelected');
+ value(val, oldVal) {
+ const { remote, valueKey } = this.select;
91
+ if (!this.created && !remote) {
92
+ if (valueKey && typeof val === 'object' && typeof oldVal === 'object' && val[valueKey] === oldVal[valueKey]) {
93
+ return;
94
+ }
95
+ this.dispatch('ElSelect', 'setSelected');
96
97
}
98
99
0 commit comments