浏览代码

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 2 年之前
父节点
当前提交
7e54764652
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/multiwindow.rs

+ 1 - 1
examples/multiwindow.rs

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