Skip to content

Commit

Permalink
primefaces#45 Modified the onToggleAll to keep the same behavior of s…
Browse files Browse the repository at this point in the history
…electing all items by hand and replaced default placeholder.
  • Loading branch information
Jonas Raoni Soares da Silva committed Aug 29, 2019
1 parent 5ebdf5a commit b5d325d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/multiselect/MultiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down Expand Up @@ -329,7 +329,7 @@ export default {
}
}
else {
label = this.placeholder || 'p-multiselect';
label = this.placeholder || '';
}
return label;
Expand Down

0 comments on commit b5d325d

Please sign in to comment.