You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[combobox][select] Hovered item gets highlighted when scroll changes in Safari #4002
On both the Combobox and the Select, if something like keyboard navigation causes the scroll position to change, focus moves to the item hovered by the mouse (even if the mouse has not moved)
Expected behavior
Ideally, if you're only using the keyboard to navigate, the item hovered by the mouse shouldn't become focused.
Position your mouse over an early fruit like "Orange"
Use your keyboard arrow keys to try to select an item later in the list (such as Plum)
When you reach the point where the list needs to scroll to show the focused item (in my case, "Peach"), focus will move to the position that is hovered by the mouse ("Orange"). To reach "Plum" using only arrow keys this will happen multiple times
Let me know if you want a repro where "Select" shows this issue more obviously.
Base UI version
1.1.0
Which browser are you using?
Safari
I tested in Chrome and this is not an issue.
Which OS are you using?
macOS 26.2
Additional context
Ark UI and Radix seem to have the same issue, so maybe this is expected, or too edge-case-y to worry about.
changed the title [-][Combobox, Select] hovered item gets selected when scroll changes[/-][+][combobox][select] Hovered item gets highlighted when scroll changes in Safari[/+]on Feb 6, 2026
in our desktop app running in Tauri's native WebKit view on macOS
A local workaround that behaves well for us is to intercept onMouseMoveCapture on the item and ignore stationary WebKit mousemove events before Base UI handles them:
constComboboxItem: React.FC<Combobox.Item.Props>=(props)=>{const{ onMouseMoveCapture, ...rest}=props;consthandleMouseMoveCapture=React.useCallback((event: Parameters<NonNullable<Combobox.Item.Props['onMouseMoveCapture']>>[0])=>{onMouseMoveCapture?.(event);if(event.isPropagationStopped()){return;}// Ignore WebKit zero-delta mousemove events during keyboard list scrolling, see https://github.com/mui/base-ui/issues/4002constnativeEvent=event.nativeEvent;constisStationaryWebKitMouseMove='webkitForce'innativeEvent&&nativeEvent.movementX===0&&nativeEvent.movementY===0;if(isStationaryWebKitMouseMove){event.stopPropagation();}},[onMouseMoveCapture]);return<Combobox.Item{...rest}onMouseMoveCapture={handleMouseMoveCapture}/>;}
Activity
[-][Combobox, Select] hovered item gets selected when scroll changes[/-][+][combobox][select] Hovered item gets highlighted when scroll changes in Safari[/+]bennobuilder commentedon May 2, 2026
Confirmed on our side as well.
We reproduced this both:
A local workaround that behaves well for us is to intercept
onMouseMoveCaptureon the item and ignore stationary WebKitmousemoveevents before Base UI handles them:builder-group/abstand@e561a50
github-actions commentedon Jul 23, 2026
This fix will be available in the next npm release of Base UI.
In the meantime, you can try it out on our Canary release channel:
test(base-ui): move the pointer for real in the Menu fan-out test
feat(select): move the highlight with the keys, place the selected it…
feat(select): add the scroll arrows, the entry point and the docs pag…
test(select): run the mouse-move highlight cases in WebKit (#395)
test(base-ui): move the pointer for real in the Menu fan-out test