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

Function Test

packages/react-aria/test/dnd/dnd.test.js:2113–2121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2111
2112 it('should handle when a drop target is hidden with aria-hidden', async () => {
2113 let Test = props => (
2114 <>
2115 <Draggable />
2116 <Droppable />
2117 <div aria-hidden={!props.showTarget || undefined}>
2118 <Droppable>Drop here 2</Droppable>
2119 </div>
2120 </>
2121 );
2122
2123 let tree = render(<Test showTarget />);
2124

Callers

nothing calls this directly

Calls 3

actFunction · 0.85
focusMethod · 0.80
renderFunction · 0.50

Tested by

no test coverage detected