Skip to content

Commit

Permalink
fix(compat): ensure fallthrough *Native events are not dropped during…
Browse files Browse the repository at this point in the history
… props update (#5228)
  • Loading branch information
LinusBorg authored Jan 21, 2022
1 parent e603fd2 commit 97f6bd9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/runtime-core/src/componentProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 97f6bd9

Please sign in to comment.