From 97f6bd942fe01a08bfc1477bcb2c2fe0c5a62094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20L=C3=BCnborg?= Date: Fri, 21 Jan 2022 07:21:42 +0100 Subject: [PATCH] fix(compat): ensure fallthrough *Native events are not dropped during props update (#5228) --- 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 946564b5e4a..7ed8aeee4a1 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 }