fix event tests in core

This commit is contained in:
Evan Almloff committed 2024-01-04 19:36:10 -06:00
1 parent 0388a5c1f4
commit 7ffb204eac
3 files changed
+10 -12

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ fn app(cx: Scope) -> Element {
button {
onclick: move |_| {
let dom = VirtualDom::new_with_props(compose, ComposeProps { app_tx: tx.clone() });
window.new_window(dom, Default::default());
dioxus_desktop::window().new_window(dom, Default::default());
},
"Click to compose a new email"
}