fix(runtime-core): ensure mergeProps skips undefined event handlers (#5299)
fix #5296
This commit is contained in:
@@ -798,6 +798,7 @@ export function mergeProps(...args: (Data & VNodeProps)[]) {
|
||||
const existing = ret[key]
|
||||
const incoming = toMerge[key]
|
||||
if (
|
||||
incoming &&
|
||||
existing !== incoming &&
|
||||
!(isArray(existing) && existing.includes(incoming))
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user