Listen to change event on string form too for autofill (#17733)

* Listen to change event on string form too for autofill

* Update ha-password-manager-polyfill.ts
This commit is contained in:
Bram Kragten 2023-08-30 14:58:38 +02:00 committed by GitHub
parent e002c5d96c
commit c0793fad83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,7 @@ export class HaPasswordManagerPolyfill extends LitElement {
.value=${this.stepData[schema.name] || ""}
.autocomplete=${schema.autocomplete}
@input=${this._valueChanged}
@change=${this._valueChanged}
/>
`;
}

View File

@ -68,6 +68,7 @@ export class HaFormString extends LitElement implements HaFormElement {
: this.schema.description?.suffix}
.validationMessage=${this.schema.required ? "Required" : undefined}
@input=${this._valueChanged}
@change=${this._valueChanged}
></ha-textfield>
${isPassword
? html`<ha-icon-button