MCPcopy
hub / github.com/adobe/react-spectrum / removeChild

Method removeChild

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

Source from the content-addressed store, hash-verified

1111 node.parent = this;
1112 }
1113 removeChild(node: TreeNode): void {
1114 this.children.delete(node);
1115 node.parent = undefined;
1116 }
1117}
1118
1119export 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
cleanupElementsFunction · 0.45
checkPositionCommonFunction · 0.45

Calls 1

deleteMethod · 0.80

Tested by 6

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