The event names shouldn't actually start with "on" — that's the HTML attribute form

This commit is contained in:
Greg Johnston 2022-12-04 23:03:54 -05:00
parent 3992febbfc
commit 2ef8032110

View file

@ -79,7 +79,7 @@ macro_rules! generate_event_types {
type EventType = web_sys::$web_sys_event;
fn name(&self) -> Cow<'static, str> {
concat!("on", stringify!([<$event:lower>])).into()
stringify!([<$event:lower>]).into()
}
}
)*