(props)
| 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); |
nothing calls this directly
no test coverage detected