Merge pull request #49 from navedqb/fix--7265

fix: hide clear icon when options array is empty
pull/7267/head
navedqb 2025-02-17 15:43:09 +05:30 committed by GitHub
commit 473df98cee
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;
},
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: {