Explorar el Código

chore: use variable instead of literal

Evan You hace 5 años
padre
commit
6fbf0dd315
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
   }