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

Function App

packages/react-aria/test/focus/FocusScope.test.js:2324–2331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2322 */
2323 it('should restore focus to the element outside shadow DOM on unmount, with FocusScope outside as well', async () => {
2324 const App = () => (
2325 <>
2326 <FocusScope restoreFocus>
2327 <input data-testid="outside" />
2328 </FocusScope>
2329 <div id="shadow-host" />
2330 </>
2331 );
2332
2333 const {getByTestId} = render(<App />);
2334 const shadowHost = document.getElementById('shadow-host');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected