fix: tweak js code
This commit is contained in:
1 parent
169f1dac11
commit
28e9e4373e
1 file changed
+4
-2
@@ -229,12 +229,14 @@ export class Interpreter {
|
|||||||
shouldPreventDefault = target.getAttribute(
|
shouldPreventDefault = target.getAttribute(
|
||||||
`dioxus-prevent-default`
|
`dioxus-prevent-default`
|
||||||
);
|
);
|
||||||
|
|
||||||
let contents = serialize_event(event);
|
let contents = serialize_event(event);
|
||||||
|
|
||||||
if (shouldPreventDefault === `on${event.type}`) {
|
if (shouldPreventDefault === `on${event.type}`) {
|
||||||
// event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
if (event.type == "submit") {
|
if (event.type == "submit") {
|
||||||
// event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target.tagName == "FORM") {
|
if (target.tagName == "FORM") {
|
||||||
|
|||||||
Reference in new issue
Block a user