fix: tweak js code

This commit is contained in:
Jonathan Kelley 2022-02-04 18:11:58 -05:00
parent 169f1dac11
commit 28e9e4373e

View file

@ -229,12 +229,14 @@ export class Interpreter {
shouldPreventDefault = target.getAttribute(
`dioxus-prevent-default`
);
let contents = serialize_event(event);
if (shouldPreventDefault === `on${event.type}`) {
// event.preventDefault();
event.preventDefault();
}
if (event.type == "submit") {
// event.preventDefault();
event.preventDefault();
}
if (target.tagName == "FORM") {