weightless icon indicating copy to clipboard operation
weightless copied to clipboard

Add types support for full set of allowed autocomplete values

Open sbryan opened this issue 4 years ago • 0 comments

https://github.com/andreasbm/weightless/blob/91dfd483e9a9bc3b89c9f6e63918eff703a6a415/src/lib/behavior/input/input-behavior.ts#L71

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>```

sbryan avatar Aug 30 '19 15:08 sbryan