]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: use variable instead of literal
authorEvan You <yyx990803@gmail.com>
Fri, 28 May 2021 19:56:07 +0000 (15:56 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 28 May 2021 19:56:07 +0000 (15:56 -0400)
packages/runtime-dom/src/modules/props.ts

index f312020e7f3ae6ce94e895699f01fb2703bb7fe6..39e068d7ee6d4f3b3a2ce46173d351ee3914d163 100644 (file)
@@ -34,7 +34,7 @@ export function patchDOMProp(
       el.value = newValue
     }
     if (value == null) {
-      el.removeAttribute('value')
+      el.removeAttribute(key)
     }
     return
   }