Add autocomplete attribute to input widgets

This commit is contained in:
hadi 2023-04-03 12:29:50 +02:00
parent c4809386e1
commit 44d4b70aaf

View File

@ -131,6 +131,10 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
autofocus: { autofocus: {
type: Boolean, type: Boolean,
reflect: true reflect: true
},
autocomplete: {
type: String
} }
}; };
} }
@ -184,6 +188,7 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
this.et2HandleFocus = this.et2HandleFocus.bind(this); this.et2HandleFocus = this.et2HandleFocus.bind(this);
this.et2HandleBlur = this.et2HandleBlur.bind(this); this.et2HandleBlur = this.et2HandleBlur.bind(this);
this.autocomplete = 'on';
} }
connectedCallback() connectedCallback()