diff --git a/components/lib/multiselect/MultiSelect.vue b/components/lib/multiselect/MultiSelect.vue index 949ac8767..3ba42aee2 100755 --- a/components/lib/multiselect/MultiSelect.vue +++ b/components/lib/multiselect/MultiSelect.vue @@ -770,7 +770,7 @@ export default { }, getSelectedItemsLabel() { let pattern = /{(.*?)}/; - const selectedItemsLabel = this.$primevue.config.locale.selectionMessage || 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 + ''); } diff --git a/doc/common/apidoc/index.json b/doc/common/apidoc/index.json index 98b7f591d..e9060f964 100644 --- a/doc/common/apidoc/index.json +++ b/doc/common/apidoc/index.json @@ -36572,6 +36572,14 @@ "type": "boolean", "default": "false", "description": "When enabled, it removes component related styles in the core." + }, + { + "name": "closeOnEscape", + "optional": true, + "readonly": false, + "type": "boolean", + "default": "true", + "description": "Specifies if pressing escape key should hide the dialog." } ], "methods": []