Skip to content

Commit

Permalink
Fix instanceContainsElem bug from typo (#18213)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm authored Mar 4, 2020
1 parent 7e94d89 commit 83c3ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dom/src/client/ReactDOMHostConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ export function clearSuspenseBoundaryFromContainer(
function instanceContainsElem(instance: Instance, element: HTMLElement) {
let fiber = getClosestInstanceFromNode(element);
while (fiber !== null) {
if (fiber.tag === HostComponent && fiber.stateNode === element) {
if (fiber.tag === HostComponent && fiber.stateNode === instance) {
return true;
}
fiber = fiber.return;
Expand Down

0 comments on commit 83c3ed2

Please sign in to comment.