mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
Fix bug in ReadOnlyNode.compareDocumentPosition (#47557)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47557 Changelog: [internal] Not published as a bugfix because this API isn't enabled in OSS yet. Reviewed By: sammy-SC Differential Revision: D65769326 fbshipit-source-id: 165d58304d8214c583fbc162d8888095e9f068aa
This commit is contained in:
parent
058624fc1d
commit
4cce3b8bf6
@ -211,7 +211,7 @@ uint_fast16_t compareDocumentPosition(
|
||||
|
||||
auto otherAncestors =
|
||||
otherShadowNode.getFamily().getAncestors(*currentRevision);
|
||||
if (ancestors.empty()) {
|
||||
if (otherAncestors.empty()) {
|
||||
return DOCUMENT_POSITION_DISCONNECTED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user