Fix #4558 - locale "selectedItemsLabel" is broken on MultiSelect
parent
456d4e338f
commit
8c2b417ffc
|
@ -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 + '');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue