Explorar o código

fix: prevent `submit` default

YuKun Liu %!s(int64=3) %!d(string=hai) anos
pai
achega
8089023a6c
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      packages/desktop/src/index.js

+ 4 - 1
packages/desktop/src/index.js

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