about summary refs log tree commit diff
path: root/src/components/ContextMenu/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ContextMenu/index.tsx')
-rw-r--r--src/components/ContextMenu/index.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/ContextMenu/index.tsx b/src/components/ContextMenu/index.tsx
index 90c448782..aebed6419 100644
--- a/src/components/ContextMenu/index.tsx
+++ b/src/components/ContextMenu/index.tsx
@@ -775,7 +775,10 @@ export function Item({
       ]}>
       <ItemContext.Provider value={itemContext}>
         {typeof children === 'function'
-          ? children(focused || pressed || context.hoveredMenuItem === id)
+          ? children(
+              (focused || pressed || context.hoveredMenuItem === id) &&
+                !rest.disabled,
+            )
           : children}
       </ItemContext.Provider>
     </Pressable>