From 438c03ad6832851eec221ec021d3096208f0e8c8 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Mon, 8 Jan 2024 13:10:09 -0600 Subject: [PATCH] fix the double click event --- packages/html/src/events/mouse.rs | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/packages/html/src/events/mouse.rs b/packages/html/src/events/mouse.rs index c5ec92720..f6b3d14a9 100644 --- a/packages/html/src/events/mouse.rs +++ b/packages/html/src/events/mouse.rs @@ -78,7 +78,7 @@ impl_event! { #[deprecated(since = "0.5.0", note = "use ondoubleclick instead")] ondblclick -// ondoubleclick: "ondblclick" + ondoubleclick: "ondblclick" /// onmousedown onmousedown @@ -104,22 +104,6 @@ impl_event! { onmouseup } -#[inline] -pub fn ondoubleclick<'a, E: crate::EventReturn, T>( - _cx: &'a ::dioxus_core::ScopeState, - mut _f: impl FnMut(::dioxus_core::Event) -> E + 'a, -) -> ::dioxus_core::MountedAttribute<'a> { - ::dioxus_core::Attribute::new( - "ondblclick", - _cx.listener(move |e: ::dioxus_core::Event| { - _f(e).spawn(_cx); - }), - None, - false, - ) - .into() -} - impl MouseData { /// Create a new instance of MouseData pub fn new(inner: impl HasMouseData + 'static) -> Self {