Browse Source

fix creating EventHandler in a component

Evan Almloff 1 năm trước cách đây
mục cha
commit
ce902e4586
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/rsx/src/component.rs

+ 1 - 1
packages/rsx/src/component.rs

@@ -220,7 +220,7 @@ impl ToTokens for ContentField {
                 #s.to_string()
             }),
             ContentField::OnHandlerRaw(e) => tokens.append_all(quote! {
-                ::dioxus::core::Attribute::EventHandler(EventHandler::new(#e))
+                EventHandler::new(#e)
             }),
         }
     }