diff --git a/platypush/backend/http/webapp/src/components/elements/Autocomplete.vue b/platypush/backend/http/webapp/src/components/elements/Autocomplete.vue index 73f2c7286c..d63dc11551 100644 --- a/platypush/backend/http/webapp/src/components/elements/Autocomplete.vue +++ b/platypush/backend/http/webapp/src/components/elements/Autocomplete.vue @@ -52,6 +52,11 @@ export default { default: false, }, + autofocus: { + type: Boolean, + default: false, + }, + label: { type: String, }, @@ -194,6 +199,8 @@ export default { mounted() { document.addEventListener("click", this.onDocumentClick) + if (this.autofocus) + this.$refs.input.focus() }, }