Skip to content

Commit 93557af

Browse files
authored
Update vnode.ts
1 parent bbd99f9 commit 93557af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-core/src/vnode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,9 +798,9 @@ export function mergeProps(...args: (Data & VNodeProps)[]) {
798798
const existing = ret[key]
799799
const incoming = toMerge[key]
800800
if (
801+
incoming &&
801802
existing !== incoming &&
802-
!(isArray(existing) && existing.includes(incoming)) &&
803-
incoming
803+
!(isArray(existing) && existing.includes(incoming))
804804
) {
805805
ret[key] = existing
806806
? [].concat(existing as any, incoming as any)

0 commit comments

Comments
 (0)