Skip to content

Add types support for full set of allowed autocomplete values  #81

@sbryan

Description

@sbryan

@property({type: String, reflect: true}) autocomplete?: "on" | "off";

The input behavior class extends the form element behaviors, but, only recognizes "on" or "off" as valid values when in fact, there are many more defined autocompete types/values (see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete).

For now, this only affects type checking and linting tools that enforce them, but it would be great if this were just a pass-thru attribute to the <input/> element and no errors were flagged on code such as this:

<wl-textfield type="password autocomplete="current-password"></wl-textfield>```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions