Merge pull request #4744 from petitkriket/issue-4743

MultiSelect selectedItemsLabel order
pull/4753/head
Tuğçe Küçükoğlu 2023-11-03 11:00:23 +03:00 committed by GitHub
commit 4d4fe141d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 + '');