Przeglądaj źródła

chore: use variable instead of literal

Evan You 5 lat temu
rodzic
commit
6fbf0dd315
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/runtime-dom/src/modules/props.ts

+ 1 - 1
packages/runtime-dom/src/modules/props.ts

@@ -34,7 +34,7 @@ export function patchDOMProp(
       el.value = newValue
     }
     if (value == null) {
-      el.removeAttribute('value')
+      el.removeAttribute(key)
     }
     return
   }