Et2Password: Fix still forced autocomplete="new-password"

This commit is contained in:
nathan 2023-02-15 09:21:40 -07:00
parent bac32f4bba
commit ced2bc6061

View File

@ -57,17 +57,7 @@ export class Et2Password extends Et2InvokerMixin(Et2Textbox)
this.suggestPassword();
};
}
connectedCallback()
{
super.connectedCallback();
this.autocomplete = "new-password";
this.updateComplete.then(() =>
{
this.shadowRoot.querySelector("[type='password']").autocomplete = "new-password";
});
}
transformAttributes(attrs)
{
if(typeof attrs.suggest !== "undefined")