Skip to content
Permalink
Browse files
fix(compat): ensure fallthrough *Native events are not dropped during…
… props update (#5228)
  • Loading branch information
LinusBorg committed Jan 21, 2022
1 parent e603fd2 commit 97f6bd9
Showing 1 changed file with 5 additions and 1 deletion.
@@ -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
}

0 comments on commit 97f6bd9

Please sign in to comment.