MCPcopy Create free account
hub / github.com/adobe/react-spectrum / removeChild

Method removeChild

packages/react-aria/src/focus/FocusScope.tsx:1120–1123  ·  view source on GitHub ↗
(node: TreeNode)

Source from the content-addressed store, hash-verified

1118 node.parent = this;
1119 }
1120 removeChild(node: TreeNode): void {
1121 this.children.delete(node);
1122 node.parent = undefined;
1123 }
1124}
1125
1126export let focusScopeTree: Tree = new Tree();

Callers 15

AppFunction · 0.45
ExampleFunction · 0.45
ExampleComponentFunction · 0.45
useFocus.test.jsFile · 0.45
domHelpers.test.jsFile · 0.45
useId.test.jsxFile · 0.45
cleanupElementsFunction · 0.45

Calls 1

deleteMethod · 0.80

Tested by 7

AppFunction · 0.36
ExampleFunction · 0.36
ExampleComponentFunction · 0.36
cleanupElementsFunction · 0.36
checkPositionCommonFunction · 0.36
mountInShadowFunction · 0.36