From a4fcb743fad7dd0d3ca26a31ff376874f30b5577 Mon Sep 17 00:00:00 2001 From: Steve Repsher Date: Mon, 10 Oct 2022 13:54:16 -0400 Subject: [PATCH] Add autocomplete to onboarding, cloud, and password change (#14040) --- src/components/ha-selector/ha-selector-text.ts | 3 ++- src/components/ha-textfield.ts | 9 +++++++++ src/data/selector.ts | 1 + src/onboarding/onboarding-create-user.ts | 12 ++++++++---- src/panels/config/cloud/login/cloud-login.ts | 2 ++ src/panels/config/cloud/register/cloud-register.ts | 2 ++ .../config/users/dialog-admin-change-password.ts | 2 ++ src/panels/profile/ha-change-password-card.ts | 3 +++ 8 files changed, 29 insertions(+), 5 deletions(-) diff --git a/src/components/ha-selector/ha-selector-text.ts b/src/components/ha-selector/ha-selector-text.ts index dd47b2c27c7b..003775832d46 100644 --- a/src/components/ha-selector/ha-selector-text.ts +++ b/src/components/ha-selector/ha-selector-text.ts @@ -39,7 +39,7 @@ export class HaTextSelector extends LitElement { .disabled=${this.disabled} @input=${this._handleChange} autocapitalize="none" - autocomplete="off" + .autocomplete=${this.selector.text.autofill} spellcheck="false" .required=${this.required} autogrow @@ -59,6 +59,7 @@ export class HaTextSelector extends LitElement { html`
` : this.selector.text?.suffix} .required=${this.required} + .autocomplete=${this.selector.text.autofill} > ${this.selector.text?.type === "password" ? html`