Преглед изворни кода

chore: use variable instead of literal

Evan You пре 5 година
родитељ
комит
6fbf0dd315
1 измењених фајлова са 1 додато и 1 уклоњено
  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
   }