Explorar el Código

remove value attribute in addition to resetting it (#2480)

Evan Almloff hace 1 año
padre
commit
489758d5ba
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      packages/interpreter/src/unified_bindings.rs

+ 1 - 0
packages/interpreter/src/unified_bindings.rs

@@ -98,6 +98,7 @@ mod js {
                 switch (field) {
                     case "value":
                         node.value = "";
+                        node.removeAttribute("value");
                         break;
                     case "checked":
                         node.checked = false;