You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to compile a list of dom events but I ran into a bit of trouble when writing the TypeScript definition since the event name needs to be detected to determine the return value.
When creating events, you should use the right constructor. For example
new MouseEvent('click')
instead of a plainnew Event('click')
.As far as I know there's no way to this automatically so there could be DOM event creator that includes such map.
This particularly useful when your app can trigger a variety of events and you can't be bothered to match them manually 😃
The text was updated successfully, but these errors were encountered: