mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Fix instanceContainsElem bug from typo (#18213)
This commit is contained in:
1 parent
7e94d89f3e
commit
83c3ed290c
1 file changed
+1
-1
+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