From: Evan You Date: Fri, 28 May 2021 19:56:07 +0000 (-0400) Subject: chore: use variable instead of literal X-Git-Tag: v3.1.0-beta.6~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6fbf0dd315f00c2c884a712b7b8107eb1bb3bea2;p=thirdparty%2Fvuejs%2Fcore.git chore: use variable instead of literal --- diff --git a/packages/runtime-dom/src/modules/props.ts b/packages/runtime-dom/src/modules/props.ts index f312020e7f..39e068d7ee 100644 --- a/packages/runtime-dom/src/modules/props.ts +++ b/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 }