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

Function findRoot

packages/react-aria-components/test/CheckboxGroup.test.js:54–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53 let Checkbox = comp === 'CheckboxField' ? CheckboxExample : CheckboxLegacy;
54 let findRoot = el =>
55 comp === 'CheckboxField' ? el.closest('label').parentElement : el.closest('label');
56 let TestCheckboxGroup = ({groupProps, checkboxProps}) => (
57 <CheckboxGroup {...groupProps}>
58 <Label>Test</Label>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected