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();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(event);
|
if (event.type == "submit") {
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
|
||||||
if (event.type == "click") {
|
if (event.type == "click") {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if (should_prevent_default !== `onclick`) {
|
if (should_prevent_default !== `onclick`) {
|
||||||
|
|||||||
Reference in new issue
Block a user