From 7ddf56dc88a5ce15497d5c9589ae835b4d724395 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 27 Sep 2024 08:57:00 +0300 Subject: [PATCH] Fixed #6485 --- .../primevue/src/multiselect/MultiSelect.vue | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/packages/primevue/src/multiselect/MultiSelect.vue b/packages/primevue/src/multiselect/MultiSelect.vue index 1f5c8d9de..fda3ad320 100755 --- a/packages/primevue/src/multiselect/MultiSelect.vue +++ b/packages/primevue/src/multiselect/MultiSelect.vue @@ -30,16 +30,21 @@ {{ label || 'empty' }} @@ -1059,7 +1064,7 @@ export default { return label; }, chipSelectedItems() { - return isNotEmpty(this.maxSelectedLabels) && this.modelValue && this.modelValue.length > this.maxSelectedLabels ? this.modelValue.slice(0, this.maxSelectedLabels) : this.modelValue; + return isNotEmpty(this.maxSelectedLabels) && this.modelValue && this.modelValue.length > this.maxSelectedLabels; }, allSelected() { return this.selectAll !== null ? this.selectAll : isNotEmpty(this.visibleOptions) && this.visibleOptions.every((option) => this.isOptionGroup(option) || this.isOptionDisabled(option) || this.isSelected(option));