fix the downcast for formdata try_as_web_event (#3227)

This commit is contained in:
Chris Rogus authored and GitHub committed 2024-11-16 19:20:51 -05:00
1 parent fe1dd03732
commit 1b54cb95a0
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ impl WebEventExt for dioxus_html::FormData {
#[inline(always)]
fn try_as_web_event(&self) -> Option<Self::WebEvent> {
self.downcast::<WebFormData>().map(|e| e.raw.clone())
self.downcast::<Event>().cloned()
}
}