Remove native and web features from dioxus-html (#3006)
* remove native and web features from dioxus-html * Fix downcasting web events * Fix desktop with tokio disabled
This commit is contained in:
1 parent
677e0e7f4f
commit
cda8bb24f1
54 files changed
+1768
-1512
No files matched your search
@@ -0,0 +1,22 @@
|
||||
use dioxus_html::HasTransitionData;
|
||||
use web_sys::TransitionEvent;
|
||||
|
||||
use super::Synthetic;
|
||||
|
||||
impl HasTransitionData for Synthetic<TransitionEvent> {
|
||||
fn elapsed_time(&self) -> f32 {
|
||||
self.event.elapsed_time()
|
||||
}
|
||||
|
||||
fn property_name(&self) -> String {
|
||||
self.event.property_name()
|
||||
}
|
||||
|
||||
fn pseudo_element(&self) -> String {
|
||||
self.event.pseudo_element()
|
||||
}
|
||||
|
||||
fn as_any(&self) -> &dyn std::any::Any {
|
||||
self
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user