Open drewbitt opened 1 year ago
Thank you, that is a valid problem. I identified this problem when developing the solution for the typings of the component props. I was gonna tackle this next, still thinking of a good approach that does not involve listing all the possible DOM events in the component type file.
From what I read, all events from a component are assumed to be custom events by the compiler. I'm thinking of using the the DOMAttributes class from svelte/elements, but I'm not sure it will work. If anyone has any idea, I would greatly appreciate
still thinking of a good approach that does not involve listing all the possible DOM events in the component type file
This is still a decent alternative in the interim. Of course not all, but several popular options. We can compile a list probably of what they would be.
What package has an issue
@svelteuidev/core
A clear and concise description of what the bug is
will not work as svelteui is forcing CustomEvent on the event, which does not have .key. It should be a KeyboardEvent. Events should be falling back to native. Keydown for example is important in accessibility.
Currently you can mitigate this via
This was not newly introduced in 0.9
In which browser(s) did the problem occur?
No response
Steps To Reproduce
Do you know how to fix the issue
Yes
Are you willing to participate in fixing this issue and create a pull request with the fix
No
Relevant Assets
No response