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;