Fix #4558 - locale "selectedItemsLabel" is broken on MultiSelect

pull/4588/head
Chingiz Mammadov 2023-10-11 02:16:10 +04:00
parent 456d4e338f
commit 8c2b417ffc
No known key found for this signature in database
GPG Key ID: ABCB4517F50A9077
1 changed files with 1 additions and 1 deletions

View File

@ -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 + '');
}