From 5c947be455d1abca6570495db823a99d86f04999 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Mon, 23 Jun 2025 14:29:21 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20fix:=20Minor=20Menu=20Issues=20(#80?= =?UTF-8?q?26)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: Enable portal support in ExportAndShareMenu component * fix: MCPSubMenu with focus loop and improved button click handling * chore: remove "tools" header in toolsdropdown --- client/src/components/Chat/ExportAndShareMenu.tsx | 1 + client/src/components/Chat/Input/MCPSubMenu.tsx | 13 +++++++++---- client/src/components/Chat/Input/ToolsDropdown.tsx | 12 +----------- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/client/src/components/Chat/ExportAndShareMenu.tsx b/client/src/components/Chat/ExportAndShareMenu.tsx index 0ac0144da3..aa9ee8be9b 100644 --- a/client/src/components/Chat/ExportAndShareMenu.tsx +++ b/client/src/components/Chat/ExportAndShareMenu.tsx @@ -68,6 +68,7 @@ export default function ExportAndShareMenu({ return ( <> + ) => { + e.stopPropagation(); + menuStore.toggle(); + }} + className="flex w-full cursor-pointer items-center justify-between rounded-lg p-2 hover:bg-surface-hover" + /> } >
@@ -62,10 +69,8 @@ const MCPSubMenu = ({ { const mcpPlaceholder = startupConfig?.interface?.mcpServers?.placeholder; const dropdownItems = useMemo(() => { - const items: MenuItemProps[] = [ - { - render: () => ( -
- {localize('com_ui_tools')} -
- ), - hideOnClick: false, - }, - ]; - + const items: MenuItemProps[] = []; items.push({ onClick: handleFileSearchToggle, hideOnClick: false,