mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
475a6492c7
We're walking backwards up to the root to find the parent so that we can propagate events further up to nested React parents. If we don't find a root, that means that the tree was unmounted and we shouldn't send any events to it.