mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
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:
parent
4206da7c41
commit
d422b533ea
@ -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]
|
||||
|
||||
@ -166,7 +166,7 @@ impl_short! {
|
||||
|
||||
oninput(InputEvent)
|
||||
|
||||
onsubmit(FocusEvent)
|
||||
onsubmit(SubmitEvent)
|
||||
|
||||
onanimationcancel(AnimationEvent)
|
||||
onanimationend(AnimationEvent)
|
||||
|
||||
@ -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")]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user