Skip to content

Commit

Permalink
onsubmit should be a SubmitEvent (#2816)
Browse files Browse the repository at this point in the history
* onsubmit should be a SubmitEvent

* At least v0.3.59

* Enable feature, add re-export

* fmt
  • Loading branch information
hamza1311 committed Aug 7, 2022
1 parent 4206da7 commit d422b53
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/yew/Cargo.toml
Expand Up @@ -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",
Expand Down Expand Up @@ -67,6 +67,7 @@ features = [
"WheelEvent",
"Window",
"HtmlScriptElement",
"SubmitEvent"
]

[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion packages/yew/src/html/listener/events.rs
Expand Up @@ -166,7 +166,7 @@ impl_short! {

oninput(InputEvent)

onsubmit(FocusEvent)
onsubmit(SubmitEvent)

onanimationcancel(AnimationEvent)
onanimationend(AnimationEvent)
Expand Down
3 changes: 2 additions & 1 deletion packages/yew/src/lib.rs
Expand Up @@ -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")]
Expand Down

0 comments on commit d422b53

Please sign in to comment.