fix: domProps handling
This commit is contained in:
parent
9d1f0f248d
commit
157971b3cb
@ -9,6 +9,7 @@ import { isOn } from '@vue/shared'
|
|||||||
// value, checked, selected & muted
|
// value, checked, selected & muted
|
||||||
// plus anything with upperCase letter in it are always patched as properties
|
// plus anything with upperCase letter in it are always patched as properties
|
||||||
const domPropsRE = /\W|^(?:value|checked|selected|muted)$/
|
const domPropsRE = /\W|^(?:value|checked|selected|muted)$/
|
||||||
|
const domPropsReplaceRE = /^domProps/
|
||||||
|
|
||||||
export function patchData(
|
export function patchData(
|
||||||
el: Element,
|
el: Element,
|
||||||
@ -34,7 +35,7 @@ export function patchData(
|
|||||||
} else if (domPropsRE.test(key)) {
|
} else if (domPropsRE.test(key)) {
|
||||||
patchDOMProp(
|
patchDOMProp(
|
||||||
el,
|
el,
|
||||||
key[8].toLowerCase() + key.slice(9),
|
key.replace(domPropsReplaceRE, '').toLowerCase(),
|
||||||
nextValue,
|
nextValue,
|
||||||
prevVNode,
|
prevVNode,
|
||||||
unmountChildren
|
unmountChildren
|
||||||
|
Loading…
Reference in New Issue
Block a user