Use the correct serialized event converter

This commit is contained in:
Jonathan Kelley committed 2024-01-08 12:19:43 -08:00
1 parent 6ed038e9e5
commit 1b883b2858
1 file changed
+2 -2
+2 -2
View File
@@ -13,7 +13,7 @@ use crossbeam_channel::Receiver;
use dioxus_core::{Component, ElementId, VirtualDom};
use dioxus_html::{
native_bind::NativeFileEngine, FileEngine, HasFormData, HtmlEvent, MountedData,
PlatformEventData, SerializedHtmlEventConverter,
PlatformEventData,
};
use std::{
cell::{Cell, RefCell},
@@ -87,7 +87,7 @@ impl<P: 'static> App<P> {
crate::collect_assets::copy_assets();
// Set the event converter
dioxus_html::set_event_converter(Box::new(SerializedHtmlEventConverter));
dioxus_html::set_event_converter(Box::new(crate::events::SerializedHtmlEventConverter));
// Allow hotreloading to work - but only in debug mode
#[cfg(all(feature = "hot-reload", debug_assertions))]