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

Method removeChild

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

Source from the content-addressed store, hash-verified

1167 node.parent = this;
1168 }
1169 removeChild(node: TreeNode): void {
1170 this.children.delete(node);
1171 node.parent = undefined;
1172 }
1173}
1174
1175export 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
keyboard.test.tsFile · 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