mirror of https://github.com/ElemeFE/element
Select: fix clear on remote mode
parent
2f37355136
commit
e44bf50e5d
|
@ -97,6 +97,7 @@
|
||||||
let criteria = this.clearable && this.inputHovering && !this.multiple && this.options.indexOf(this.selected) > -1;
|
let criteria = this.clearable && this.inputHovering && !this.multiple && this.options.indexOf(this.selected) > -1;
|
||||||
if (!this.$el) return false;
|
if (!this.$el) return false;
|
||||||
|
|
||||||
|
this.$nextTick(() => {
|
||||||
let icon = this.$el.querySelector('.el-input__icon');
|
let icon = this.$el.querySelector('.el-input__icon');
|
||||||
if (icon) {
|
if (icon) {
|
||||||
if (criteria) {
|
if (criteria) {
|
||||||
|
@ -107,6 +108,8 @@
|
||||||
removeClass(icon, 'is-show-close');
|
removeClass(icon, 'is-show-close');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return criteria;
|
return criteria;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue