@samitouri / QOS-React-2 / commits / 83c3ed290c

Fix instanceContainsElem bug from typo (#18213)

Dominic Gannaway committed Mar 4, 2020 at 19:53 UTC 83c3ed290cb9994d89e430fd565d108365b42ac7
1 file changed +1 -1
packages/react-dom/src/client/ReactDOMHostConfig.js
+1 -1
@@ -591,7 +591,7 @@ export function clearSuspenseBoundaryFromContainer(
591 function instanceContainsElem(instance: Instance, element: HTMLElement) {
592 let fiber = getClosestInstanceFromNode(element);
593 while (fiber !== null) {
594 - if (fiber.tag === HostComponent && fiber.stateNode === element) {
594 + if (fiber.tag === HostComponent && fiber.stateNode === instance) {
595 return true;
596 }
597 fiber = fiber.return;