Explorar o código

chore: use variable instead of literal

Evan You %!s(int64=4) %!d(string=hai) anos
pai
achega
6fbf0dd315
Modificáronse 1 ficheiros con 1 adicións e 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
   }