From b5d325d3a8ede7ea2f7e2fea28975de09c71100d Mon Sep 17 00:00:00 2001 From: Jonas Raoni Soares da Silva Date: Thu, 29 Aug 2019 16:16:10 +0300 Subject: [PATCH] primefaces/primevue#45 Modified the onToggleAll to keep the same behavior of selecting all items by hand and replaced default placeholder. --- src/components/multiselect/MultiSelect.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/multiselect/MultiSelect.vue b/src/components/multiselect/MultiSelect.vue index ed8dee373bb..375ff17d615 100644 --- a/src/components/multiselect/MultiSelect.vue +++ b/src/components/multiselect/MultiSelect.vue @@ -284,7 +284,7 @@ export default { return label; }, onToggleAll(event) { - const value = this.allSelected ? [] : this.visibleOptions; + const value = this.allSelected ? [] : this.visibleOptions && this.visibleOptions.map(option => this.getOptionValue(option)); this.$emit('input', value); this.$emit('change', {originalEvent: event, value: value}); @@ -329,7 +329,7 @@ export default { } } else { - label = this.placeholder || 'p-multiselect'; + label = this.placeholder || ''; } return label;