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

Function findRoot

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected