MultiSelect selectedItemsLabel order

pull/4744/head
BOUAROUA Samuel 2023-11-02 13:53:39 +01:00
parent abc277b4f9
commit 5daafc792e
No known key found for this signature in database
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.selectionMessage || this.selectedItemsLabel;
const selectedItemsLabel = this.selectedItemsLabel || this.$primevue.config.locale.selectionMessage;
if (pattern.test(selectedItemsLabel)) {
return selectedItemsLabel.replace(selectedItemsLabel.match(pattern)[0], this.modelValue.length + '');