fix the downcast for formdata try_as_web_event (#3227)

This commit is contained in:
Chris Rogus 2024-11-16 19:20:51 -05:00 committed by GitHub
parent fe1dd03732
commit 1b54cb95a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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()
}
}