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

Function Test

packages/react-aria/test/interactions/useFocusWithin.test.js:192–199  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

190
191 it('should fire onBlur when focus occurs outside', async function () {
192 function Test(props) {
193 let {focusWithinProps} = useFocusWithin(props);
194 return (
195 <div {...focusWithinProps} data-testid="test">
196 {props.children}
197 </div>
198 );
199 }
200
201 function Inner() {
202 let [show, setShow] = useState(true);

Callers

nothing calls this directly

Calls 1

useFocusWithinFunction · 0.90

Tested by

no test coverage detected