mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-30 08:00:21 +00:00
fix: prevent submit
default
This commit is contained in:
parent
46fd6ac345
commit
8089023a6c
1 changed files with 4 additions and 1 deletions
|
@ -357,7 +357,10 @@ class Interpreter {
|
|||
event.preventDefault();
|
||||
}
|
||||
|
||||
console.log(event);
|
||||
if (event.type == "submit") {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if (event.type == "click") {
|
||||
event.preventDefault();
|
||||
if (should_prevent_default !== `onclick`) {
|
||||
|
|
Loading…
Reference in a new issue