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

Function onMouseDown

packages/react-aria/test/focus/FocusScope.test.js:1178–1180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1176 function Group(props) {
1177 let focusManager = useFocusManager();
1178 let onMouseDown = e => {
1179 focusManager.focusNext({from: e.target, tabbable: true});
1180 };
1181 // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
1182 return <div {...props} role="group" onMouseDown={onMouseDown} />;
1183 }

Callers

nothing calls this directly

Calls 2

focusNextMethod · 0.65
focusPreviousMethod · 0.65

Tested by

no test coverage detected