Explorar o código

fix(Examples/Multi-Window): launch the popup content instead of app.

Not sure if my assumption is correct but it seemed this was the intention of the popup fn.
Matt Wisniewski %!s(int64=2) %!d(string=hai) anos
pai
achega
7e54764652
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/multiwindow.rs

+ 1 - 1
examples/multiwindow.rs

@@ -12,7 +12,7 @@ fn app(cx: Scope) -> Element {
         div {
         div {
             button {
             button {
                 onclick: move |_| {
                 onclick: move |_| {
-                    let dom = VirtualDom::new(app);
+                    let dom = VirtualDom::new(popup);
                     window.new_window(dom, Default::default());
                     window.new_window(dom, Default::default());
                 },
                 },
                 "New Window"
                 "New Window"