소스 검색

fix creating EventHandler in a component

Evan Almloff 1 년 전
부모
커밋
ce902e4586
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
             }),
         }
     }