Skip to content

Commit

Permalink
Update vnode.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 authored Jan 21, 2022
1 parent bbd99f9 commit 93557af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/src/vnode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -798,9 +798,9 @@ export function mergeProps(...args: (Data & VNodeProps)[]) {
const existing = ret[key]
const incoming = toMerge[key]
if (
incoming &&
existing !== incoming &&
!(isArray(existing) && existing.includes(incoming)) &&
incoming
!(isArray(existing) && existing.includes(incoming))
) {
ret[key] = existing
? [].concat(existing as any, incoming as any)
Expand Down

0 comments on commit 93557af

Please sign in to comment.