mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-22 12:13:04 +00:00
fix: tweak js code
This commit is contained in:
parent
169f1dac11
commit
28e9e4373e
1 changed files with 4 additions and 2 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue