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

Function onHoverStart

packages/react-aria/src/listbox/useOption.ts:157–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155 let {hoverProps} = useHover({
156 isDisabled: isDisabled || !shouldFocusOnHover,
157 onHoverStart() {
158 if (!isFocusVisible()) {
159 state.selectionManager.setFocused(true);
160 state.selectionManager.setFocusedKey(key);
161 }
162 }
163 });
164
165 let domProps = filterDOMProps(item?.props);

Callers

nothing calls this directly

Calls 3

isFocusVisibleFunction · 0.90
setFocusedMethod · 0.65
setFocusedKeyMethod · 0.65

Tested by

no test coverage detected