diff --git a/src/renderer/src/components/layout/AppShellTabBar.tsx b/src/renderer/src/components/layout/AppShellTabBar.tsx index 50550fbc12..2f47aa9929 100644 --- a/src/renderer/src/components/layout/AppShellTabBar.tsx +++ b/src/renderer/src/components/layout/AppShellTabBar.tsx @@ -114,7 +114,10 @@ type PinnedTabButtonProps = { const PinnedTabButton = ({ tab, isActive, onSelect, drag, tabRef, tone, ref, ...rest }: PinnedTabButtonProps) => { return ( + {/* Spread `rest` (which carries injected ContextMenuTrigger props) first so the */} + {/* drag handler / transform style / drag classes always win on a key collision. */} @@ -198,7 +202,10 @@ const NormalTabButton = ({ const showIconOverlayClose = isCloseable && showClose && isNarrow return ( + // Spread `rest` (which carries injected ContextMenuTrigger props) first so the + // drag handler / transform style / drag classes always win on a key collision.