浏览代码

fix duplicate listeners in the autoformat tests

Evan Almloff 1 年之前
父节点
当前提交
4ef6f78657
共有 2 个文件被更改,包括 1 次插入13 次删除
  1. 0 12
      packages/autofmt/tests/samples/attributes.rsx
  2. 1 1
      packages/autofmt/tests/samples/complex.rsx

+ 0 - 12
packages/autofmt/tests/samples/attributes.rsx

@@ -12,18 +12,6 @@ rsx! {
             let blah = 120;
             true
         },
-        onclick: move |_| {
-            let blah = 120;
-            true
-        },
-        onclick: move |_| {
-            let blah = 120;
-            true
-        },
-        onclick: move |_| {
-            let blah = 120;
-            true
-        },
         div {
             div { "hi" }
             h2 { class: "asd" }

+ 1 - 1
packages/autofmt/tests/samples/complex.rsx

@@ -6,7 +6,7 @@ rsx! {
             show_user_menu.set(!show_user_menu.get());
             evt.cancel_bubble();
         },
-        onclick: move |evt| show_user_menu.set(!show_user_menu.get()),
+        onmousedown: move |evt| show_user_menu.set(!show_user_menu.get()),
         span { class: "inline-block mr-4", icons::icon_14 {} }
         span { "Settings" }
     }