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

Method removeChild

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

Source from the content-addressed store, hash-verified

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