mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
fix hydration
This commit is contained in:
parent
502c80b0ad
commit
f3ad445882
2 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
use crate::dom::WebsysDom;
|
||||
use dioxus_core::AttributeValue;
|
||||
use dioxus_core::{DynamicNode, ElementId, ScopeState, TemplateNode, VNode, VirtualDom};
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
Loading…
Reference in a new issue