fix hydration

This commit is contained in:
Evan Almloff 2024-01-06 09:08:51 -06:00
parent 502c80b0ad
commit f3ad445882
2 changed files with 3 additions and 1 deletions

View file

@ -107,7 +107,7 @@ impl_event! {
pub fn ondoubleclick<'a, E: crate::EventReturn<T>, T>(
_cx: &'a ::dioxus_core::ScopeState,
mut _f: impl FnMut(::dioxus_core::Event<MouseData>) -> E + 'a,
) -> ::dioxus_core::Attribute<'a> {
) -> ::dioxus_core::MountedAttribute<'a> {
::dioxus_core::Attribute::new(
"ondblclick",
_cx.listener(move |e: ::dioxus_core::Event<MouseData>| {
@ -116,6 +116,7 @@ pub fn ondoubleclick<'a, E: crate::EventReturn<T>, T>(
None,
false,
)
.into()
}
impl MouseData {

View file

@ -1,4 +1,5 @@
use crate::dom::WebsysDom;
use dioxus_core::AttributeValue;
use dioxus_core::{DynamicNode, ElementId, ScopeState, TemplateNode, VNode, VirtualDom};
#[derive(Debug)]