Explicitly define autofocus as reflected so it works in Firefox too

This commit is contained in:
nathan 2022-12-15 13:18:16 -07:00
parent d95e273e70
commit 272b63d32e

View File

@ -104,6 +104,15 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
onchange: {
type: Function
},
/**
* Have browser focus this input on load.
* Overrides etemplate2.focusOnFirstInput(), use only once per page
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attributes
*/
autofocus: {
type: Boolean,
reflect: true
}
};
}