Pārlūkot izejas kodu

chore: use variable instead of literal

Evan You 5 gadi atpakaļ
vecāks
revīzija
6fbf0dd315
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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
   }