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

Function onMouseDown

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

focusNextMethod · 0.65
focusPreviousMethod · 0.65

Tested by

no test coverage detected