Skip to content

Commit

Permalink
Fix primefaces#4558 - locale "selectedItemsLabel" is broken on MultiS…
Browse files Browse the repository at this point in the history
…elect
  • Loading branch information
chz committed Oct 10, 2023
1 parent 456d4e3 commit 8c2b417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/multiselect/MultiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ export default {
},
getSelectedItemsLabel() {
let pattern = /{(.*?)}/;
const selectedItemsLabel = this.$primevue.config.locale.selectedItemsLabel || this.selectedItemsLabel
const selectedItemsLabel = this.$primevue.config.locale.selectionMessage || this.selectedItemsLabel
if (pattern.test(selectedItemsLabel)) {
return selectedItemsLabel.replace(selectedItemsLabel.match(pattern)[0], this.modelValue.length + '');
}
Expand Down

0 comments on commit 8c2b417

Please sign in to comment.