fix: hide clear icon when options is empty

pull/7267/head^2
navedqb 2025-02-17 15:42:34 +05:30 committed by GitHub
parent ad5dbdd6e4
commit e32b9b27cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1137,7 +1137,7 @@ export default {
return isEmpty(this.fluid) ? !!this.$pcFluid : this.fluid; return isEmpty(this.fluid) ? !!this.$pcFluid : this.fluid;
}, },
isClearIconVisible() { isClearIconVisible() {
return this.showClear && this.d_value != null && isNotEmpty(this.options); return this.showClear && this.d_value && this.d_value.length && this.d_value != null && isNotEmpty(this.options);
} }
}, },
directives: { directives: {