From 44d4b70aaf2424f414de3383e31e76a54a1787c3 Mon Sep 17 00:00:00 2001 From: hadi Date: Mon, 3 Apr 2023 12:29:50 +0200 Subject: [PATCH] Add autocomplete attribute to input widgets --- api/js/etemplate/Et2InputWidget/Et2InputWidget.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts b/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts index 434b46466a..9a9820d905 100644 --- a/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts +++ b/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts @@ -131,6 +131,10 @@ const Et2InputWidgetMixin = >(superclass : T) autofocus: { type: Boolean, reflect: true + }, + + autocomplete: { + type: String } }; } @@ -184,6 +188,7 @@ const Et2InputWidgetMixin = >(superclass : T) this.et2HandleFocus = this.et2HandleFocus.bind(this); this.et2HandleBlur = this.et2HandleBlur.bind(this); + this.autocomplete = 'on'; } connectedCallback()