Closed aabounegm closed 2 years ago
Docs available on https://illright.github.io/attractions/347/
Check the type annotation. This is the one Svelte actually assigns to the event type automatically. You can see it by explicitly writing a function literal in the handler (e => handleInput(e)
) and hovering over e
. I believe this is because currentTarget
is guaranteed to not be null
in this case. Also, to quote a Stack Overflow answer:
target
is the element that triggered the event (e.g., the user clicked on)currentTarget
is the element that the event listener is attached to.
This is achieved simply through updating sveld to
v0.17
. The rest is very minor changes