From 4c8bc187b201e8af66569de28281ead4c174756b Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 1 Jun 2022 22:03:24 +0200 Subject: [PATCH] Allow autofocus to be set on an autocomplete input --- src/shared/autocomplete/component.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/autocomplete/component.js b/src/shared/autocomplete/component.js index 30feac046..873fe9183 100644 --- a/src/shared/autocomplete/component.js +++ b/src/shared/autocomplete/component.js @@ -7,6 +7,7 @@ import { html } from 'lit'; export default class AutoCompleteComponent extends CustomElement { static get properties () { return { + 'autofocus': { type: Boolean }, 'getAutoCompleteList': { type: Function }, 'auto_evaluate': { type: Boolean }, 'auto_first': { type: Boolean }, // Should the first element be automatically selected? @@ -36,6 +37,7 @@ export default class AutoCompleteComponent extends CustomElement {