Skip to content

Commit

Permalink
Fix bug in ReadOnlyNode.compareDocumentPosition
Browse files Browse the repository at this point in the history
Summary:
Changelog: [internal]

Not published as a bugfix because this API isn't enabled in OSS yet.

Differential Revision: D65769326
  • Loading branch information
rubennorte authored and facebook-github-bot committed Nov 11, 2024
1 parent cd98348 commit 5e0840a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ uint_fast16_t compareDocumentPosition(

auto otherAncestors =
otherShadowNode.getFamily().getAncestors(*currentRevision);
if (ancestors.empty()) {
if (otherAncestors.empty()) {
return DOCUMENT_POSITION_DISCONNECTED;
}

Expand Down

0 comments on commit 5e0840a

Please sign in to comment.