mc1098 f574c2fce3
Fix onsubmit handler to take Event (#2009)
onsubmit takes a `SubmitEvent` which is not available in web_sys.
`SubmitEvent` does not inherit from `FocusEvent` so
`FocusEvent::related_target` panics too!

As with onformdata onsubmit will use `Event` to remain safe and requires
users to define their own type or use Reflect api.

Trybuild change because of the new comment.
2021-08-22 00:16:28 +02:00
..
2021-06-05 23:00:58 +02:00