onsubmit should be a SubmitEvent (#2816)

* onsubmit should be a SubmitEvent

* At least v0.3.59

* Enable feature, add re-export

* fmt
This commit is contained in:
Muhammad Hamza 2022-08-08 02:10:38 +05:00 committed by GitHub
parent 4206da7c41
commit d422b533ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -36,7 +36,7 @@ tokio-stream = { version = "0.1.9", features = ["sync"] }
tracing = "0.1.36"
[dependencies.web-sys]
version = "0.3"
version = "^0.3.59"
features = [
"AnimationEvent",
"Document",
@ -67,6 +67,7 @@ features = [
"WheelEvent",
"Window",
"HtmlScriptElement",
"SubmitEvent"
]
[target.'cfg(target_arch = "wasm32")'.dependencies]

View File

@ -166,7 +166,7 @@ impl_short! {
oninput(InputEvent)
onsubmit(FocusEvent)
onsubmit(SubmitEvent)
onanimationcancel(AnimationEvent)
onanimationend(AnimationEvent)

View File

@ -308,7 +308,8 @@ pub mod events {
#[doc(no_inline)]
pub use web_sys::{
AnimationEvent, DragEvent, ErrorEvent, Event, FocusEvent, InputEvent, KeyboardEvent,
MouseEvent, PointerEvent, ProgressEvent, TouchEvent, TransitionEvent, UiEvent, WheelEvent,
MouseEvent, PointerEvent, ProgressEvent, SubmitEvent, TouchEvent, TransitionEvent, UiEvent,
WheelEvent,
};
#[cfg(feature = "csr")]