fix the downcast for formdata try_as_web_event (#3227)
This commit is contained in:
1 parent
fe1dd03732
commit
1b54cb95a0
1 file changed
+1
-1
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user