diff --git a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx index 78ffcdea..3e3f274f 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx @@ -284,8 +284,6 @@ export const SelectedFiles = ( const isThisSelectionOpened = !!(selection.selectionStr && selectionIsOpened[i]) const isThisSelectionAFile = selection.selectionStr === null - - return (
{ - e.stopPropagation(); + e.stopPropagation(); // don't open/close selection if (type !== 'staging') return; setStaging([...selections.slice(0, i), ...selections.slice(i + 1)]) setSelectionIsOpened(o => [...o.slice(0, i), ...o.slice(i + 1)]) @@ -361,7 +359,12 @@ export const SelectedFiles = (
{/* selection text */} {isThisSelectionOpened && -
+
{ + e.stopPropagation(); // don't focus input box + }} + >