From: Thorsten Lünborg Date: Fri, 21 Jan 2022 06:21:42 +0000 (+0100) Subject: fix(compat): ensure fallthrough *Native events are not dropped during props update... X-Git-Tag: v3.2.28~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f6bd942fe01a08bfc1477bcb2c2fe0c5a62094;p=thirdparty%2Fvuejs%2Fcore.git fix(compat): ensure fallthrough *Native events are not dropped during props update (#5228) --- diff --git a/packages/runtime-core/src/componentProps.ts b/packages/runtime-core/src/componentProps.ts index 946564b5e4..7ed8aeee4a 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 }