From 313d1974385ec3b79115193b725376b920d49869 Mon Sep 17 00:00:00 2001 From: Thorsten Luenborg Date: Sun, 9 Jan 2022 13:59:39 +0100 Subject: [PATCH] fix(compat): ensure fallthrough *Native events are not dropped during props update --- packages/runtime-core/src/componentProps.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/componentProps.ts b/packages/runtime-core/src/componentProps.ts index dbd5453904d..dbf193c0ca9 100644 --- a/packages/runtime-core/src/componentProps.ts +++ b/packages/runtime-core/src/componentProps.ts @@ -303,7 +303,11 @@ export function updateProps( // attrs point to the same object so it should already have been updated. if (attrs !== rawCurrentProps) { for (const key in attrs) { - if (!rawProps || !hasOwn(rawProps, key)) { + if ( + !rawProps || + (!hasOwn(rawProps, key) && + (!__COMPAT__ || !hasOwn(rawProps, key + 'Native'))) + ) { delete attrs[key] hasAttrsChanged = true }