|
@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>```
weightless/src/lib/behavior/input/input-behavior.ts
Line 71 in 91dfd48
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: