fix(compat): ensure fallthrough *Native events are not dropped during props update (#5228)
This commit is contained in:
parent
e603fd258c
commit
97f6bd942f
@ -303,7 +303,11 @@ export function updateProps(
|
|||||||
// attrs point to the same object so it should already have been updated.
|
// attrs point to the same object so it should already have been updated.
|
||||||
if (attrs !== rawCurrentProps) {
|
if (attrs !== rawCurrentProps) {
|
||||||
for (const key in attrs) {
|
for (const key in attrs) {
|
||||||
if (!rawProps || !hasOwn(rawProps, key)) {
|
if (
|
||||||
|
!rawProps ||
|
||||||
|
(!hasOwn(rawProps, key) &&
|
||||||
|
(!__COMPAT__ || !hasOwn(rawProps, key + 'Native')))
|
||||||
|
) {
|
||||||
delete attrs[key]
|
delete attrs[key]
|
||||||
hasAttrsChanged = true
|
hasAttrsChanged = true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user