mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +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}
|
.disabled=${this.disabled}
|
||||||
@input=${this._handleChange}
|
@input=${this._handleChange}
|
||||||
autocapitalize="none"
|
autocapitalize="none"
|
||||||
.autocomplete=${this.selector.text.autofill}
|
.autocomplete=${this.selector.text.autocomplete}
|
||||||
spellcheck="false"
|
spellcheck="false"
|
||||||
.required=${this.required}
|
.required=${this.required}
|
||||||
autogrow
|
autogrow
|
||||||
@ -59,7 +59,7 @@ export class HaTextSelector extends LitElement {
|
|||||||
html`<div style="width: 24px"></div>`
|
html`<div style="width: 24px"></div>`
|
||||||
: this.selector.text?.suffix}
|
: this.selector.text?.suffix}
|
||||||
.required=${this.required}
|
.required=${this.required}
|
||||||
.autocomplete=${this.selector.text.autofill}
|
.autocomplete=${this.selector.text.autocomplete}
|
||||||
></ha-textfield>
|
></ha-textfield>
|
||||||
${this.selector.text?.type === "password"
|
${this.selector.text?.type === "password"
|
||||||
? html`<ha-icon-button
|
? html`<ha-icon-button
|
||||||
|
@ -234,7 +234,7 @@ export interface StringSelector {
|
|||||||
| "datetime-local"
|
| "datetime-local"
|
||||||
| "color";
|
| "color";
|
||||||
suffix?: string;
|
suffix?: string;
|
||||||
autofill?: string;
|
autocomplete?: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,21 +18,25 @@ import { onboardUserStep } from "../data/onboarding";
|
|||||||
import { PolymerChangedEvent } from "../polymer-types";
|
import { PolymerChangedEvent } from "../polymer-types";
|
||||||
|
|
||||||
const CREATE_USER_SCHEMA: HaFormSchema[] = [
|
const CREATE_USER_SCHEMA: HaFormSchema[] = [
|
||||||
{ name: "name", required: true, selector: { text: { autofill: "name" } } },
|
{
|
||||||
|
name: "name",
|
||||||
|
required: true,
|
||||||
|
selector: { text: { autocomplete: "name" } },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "username",
|
name: "username",
|
||||||
required: true,
|
required: true,
|
||||||
selector: { text: { autofill: "username" } },
|
selector: { text: { autocomplete: "username" } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "password",
|
name: "password",
|
||||||
required: true,
|
required: true,
|
||||||
selector: { text: { type: "password", autofill: "new-password" } },
|
selector: { text: { type: "password", autocomplete: "new-password" } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "password_confirm",
|
name: "password_confirm",
|
||||||
required: true,
|
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