Prechádzať zdrojové kódy

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

Evan Almloff 1 rok pred
rodič
commit
489758d5ba

+ 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;