mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Rename autofill to autocomplete for text selector (#14202)
This commit is contained in:
parent
523d936010
commit
a56b2e3270
@ -39,7 +39,7 @@ export class HaTextSelector extends LitElement {
|
||||
.disabled=${this.disabled}
|
||||
@input=${this._handleChange}
|
||||
autocapitalize="none"
|
||||
.autocomplete=${this.selector.text.autofill}
|
||||
.autocomplete=${this.selector.text.autocomplete}
|
||||
spellcheck="false"
|
||||
.required=${this.required}
|
||||
autogrow
|
||||
@ -59,7 +59,7 @@ export class HaTextSelector extends LitElement {
|
||||
html`<div style="width: 24px"></div>`
|
||||
: this.selector.text?.suffix}
|
||||
.required=${this.required}
|
||||
.autocomplete=${this.selector.text.autofill}
|
||||
.autocomplete=${this.selector.text.autocomplete}
|
||||
></ha-textfield>
|
||||
${this.selector.text?.type === "password"
|
||||
? html`<ha-icon-button
|
||||
|
@ -234,7 +234,7 @@ export interface StringSelector {
|
||||
| "datetime-local"
|
||||
| "color";
|
||||
suffix?: string;
|
||||
autofill?: string;
|
||||
autocomplete?: string;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -18,21 +18,25 @@ import { onboardUserStep } from "../data/onboarding";
|
||||
import { PolymerChangedEvent } from "../polymer-types";
|
||||
|
||||
const CREATE_USER_SCHEMA: HaFormSchema[] = [
|
||||
{ name: "name", required: true, selector: { text: { autofill: "name" } } },
|
||||
{
|
||||
name: "name",
|
||||
required: true,
|
||||
selector: { text: { autocomplete: "name" } },
|
||||
},
|
||||
{
|
||||
name: "username",
|
||||
required: true,
|
||||
selector: { text: { autofill: "username" } },
|
||||
selector: { text: { autocomplete: "username" } },
|
||||
},
|
||||
{
|
||||
name: "password",
|
||||
required: true,
|
||||
selector: { text: { type: "password", autofill: "new-password" } },
|
||||
selector: { text: { type: "password", autocomplete: "new-password" } },
|
||||
},
|
||||
{
|
||||
name: "password_confirm",
|
||||
required: true,
|
||||
selector: { text: { type: "password", autofill: "new-password" } },
|
||||
selector: { text: { type: "password", autocomplete: "new-password" } },
|
||||
},
|
||||
];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user