fix(runtime-core): ensure mergeProps skips undefined event handlers (#5299)

fix #5296
This commit is contained in:
Thorsten Lünborg
2022-01-21 07:13:29 +01:00
committed by GitHub
parent 2f91872e7b
commit c35ec47d73
3 changed files with 6 additions and 1 deletions

View File

@@ -141,7 +141,7 @@ function patchStopImmediatePropagation(
originalStop.call(e)
;(e as any)._stopped = true
}
return value.map(fn => (e: Event) => !(e as any)._stopped && fn(e))
return value.map(fn => (e: Event) => !(e as any)._stopped && fn && fn(e))
} else {
return value
}