svelte-type-checker-vscode icon indicating copy to clipboard operation
svelte-type-checker-vscode copied to clipboard

Warning about invalid type on standard HTML attribute

Open oatymart opened this issue 5 years ago • 0 comments

I have a type warning under tabindex in the following standard HTML code (in a .svelte file):

Type 'string' is not assignable to type 'number'. svelte-type-checker(2322)

<input type="checkbox" tabindex="-1" />

Now, I have no intention of changing to tabindex={-1} so maybe there should be a way of ignoring such attributes.

oatymart avatar Apr 30 '20 10:04 oatymart