فهرست منبع

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

Evan Almloff 1 سال پیش
والد
کامیت
15b1b4a7d5
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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;