fix: prevent submit default
This commit is contained in:
1 parent
46fd6ac345
commit
8089023a6c
1 file changed
+4
-1
@@ -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`) {
|
||||
|
||||
Reference in new issue
Block a user