Skip to content

Commit 97f6bd9

Browse files
authored
fix(compat): ensure fallthrough *Native events are not dropped during props update (#5228)
1 parent e603fd2 commit 97f6bd9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/runtime-core/src/componentProps.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,11 @@ export function updateProps(
303303
// attrs point to the same object so it should already have been updated.
304304
if (attrs !== rawCurrentProps) {
305305
for (const key in attrs) {
306-
if (!rawProps || !hasOwn(rawProps, key)) {
306+
if (
307+
!rawProps ||
308+
(!hasOwn(rawProps, key) &&
309+
(!__COMPAT__ || !hasOwn(rawProps, key + 'Native')))
310+
) {
307311
delete attrs[key]
308312
hasAttrsChanged = true
309313
}

0 commit comments

Comments
 (0)