From 157971b3cbb1fe81e60d7e4ea4719bf287927f23 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sat, 3 Nov 2018 06:31:54 +0900 Subject: [PATCH] fix: domProps handling --- packages/runtime-dom/src/patchData.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/runtime-dom/src/patchData.ts b/packages/runtime-dom/src/patchData.ts index 14569f6d..55aaa3ba 100644 --- a/packages/runtime-dom/src/patchData.ts +++ b/packages/runtime-dom/src/patchData.ts @@ -9,6 +9,7 @@ import { isOn } from '@vue/shared' // value, checked, selected & muted // plus anything with upperCase letter in it are always patched as properties const domPropsRE = /\W|^(?:value|checked|selected|muted)$/ +const domPropsReplaceRE = /^domProps/ export function patchData( el: Element, @@ -34,7 +35,7 @@ export function patchData( } else if (domPropsRE.test(key)) { patchDOMProp( el, - key[8].toLowerCase() + key.slice(9), + key.replace(domPropsReplaceRE, '').toLowerCase(), nextValue, prevVNode, unmountChildren