fix: prevent submit default

This commit is contained in:
YuKun Liu 2022-01-18 15:00:49 +08:00
parent 46fd6ac345
commit 8089023a6c

View file

@ -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`) {