svelte-type-checker-vscode
svelte-type-checker-vscode copied to clipboard
Warning about multiple identical attributes in Svelte code
In my Svelte component (code below) I have the following warning from this addon:
JSX elements cannot have multiple attributes with the same name. svelte-type-checker(17001)
However my code appears to be valid Svelte and works as expected.
<input type="text"
on:focus|once={() => visited = true}
on:focus={handleInput}
/>