File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -420,9 +420,6 @@ export const MenuRoot = fastComponent(function MenuRoot<Payload>(props: MenuRoot
420420
421421 const direction = useDirection ( ) ;
422422 const pendingFocusItem = store . useState ( 'pendingFocusItem' ) ;
423- const clearPendingFocusItem = useStableCallback ( ( ) => {
424- store . set ( 'pendingFocusItem' , null ) ;
425- } ) ;
426423
427424 const listNavigation = useListNavigation ( floatingRootContext , {
428425 enabled : ! disabled ,
@@ -439,7 +436,9 @@ export const MenuRoot = fastComponent(function MenuRoot<Payload>(props: MenuRoot
439436 externalTree : nested ? floatingTreeRoot : undefined ,
440437 focusItemOnHover : highlightItemOnHover ,
441438 pendingFocusItem,
442- onPendingFocusItemChange : clearPendingFocusItem ,
439+ onPendingFocusItemChange : ( ) => {
440+ store . set ( 'pendingFocusItem' , null ) ;
441+ } ,
443442 } ) ;
444443
445444 const onTyping = React . useCallback (
You can’t perform that action at this time.
0 commit comments