Skip to content

Commit

Permalink
Merge pull request #49 from navedqb/fix--7265
Browse files Browse the repository at this point in the history
fix: hide clear icon when options array is empty
  • Loading branch information
navedqb authored Feb 17, 2025
2 parents ad5dbdd + e32b9b2 commit 473df98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/multiselect/MultiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 473df98

Please sign in to comment.