fix(runtime-core): class and style should be properly normalized in cloneVNode (#1967)
fix #1964
This commit is contained in:
@@ -433,11 +433,7 @@ export function cloneVNode<T, U>(
|
||||
// This is intentionally NOT using spread or extend to avoid the runtime
|
||||
// key enumeration cost.
|
||||
const { props, patchFlag } = vnode
|
||||
const mergedProps = extraProps
|
||||
? props
|
||||
? mergeProps(props, extraProps)
|
||||
: extend({}, extraProps)
|
||||
: props
|
||||
const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props
|
||||
return {
|
||||
__v_isVNode: true,
|
||||
[ReactiveFlags.SKIP]: true,
|
||||
|
||||
Reference in New Issue
Block a user