mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix instanceContainsElem bug from typo (#18213)
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user