Browse Source

chore: use variable instead of literal

Evan You 5 years ago
parent
commit
6fbf0dd315
1 changed files with 1 additions and 1 deletions
  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
       el.value = newValue
     }
     }
     if (value == null) {
     if (value == null) {
-      el.removeAttribute('value')
+      el.removeAttribute(key)
     }
     }
     return
     return
   }
   }