Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LA Web] Add check for HTMLElement when looking for descendant with animation. #5749

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

m-bert
Copy link
Contributor

@m-bert m-bert commented Feb 29, 2024

Summary

This issue was found in Expensify. node.children was undefined, because node wasn't HTMLElement - it was plaintext. This PR introduces new check - if node is not HTMLElement, we won't perform any action.

Test plan

Tested on Expensify App

@m-bert m-bert requested review from tomekzaw and piaskowyk February 29, 2024 16:49
@m-bert m-bert added this pull request to the merge queue Mar 1, 2024
Merged via the queue into main with commit 14be818 Mar 1, 2024
7 checks passed
@m-bert m-bert deleted the @mbert/fix-undefined-is-not-iterable branch March 1, 2024 08:32
m-bert added a commit that referenced this pull request Mar 1, 2024
… animation. (#5749)

## Summary

This issue was found in
[Expensify](Expensify/App#37463).
`node.children` was undefined, because `node` wasn't `HTMLElement` - it
was `plaintext`. This PR introduces new check - if `node` is not
`HTMLElement`, we won't perform any action.

## Test plan

Tested on Expensify App
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants