From d2cebb54118f13478eb97d73cebe2e41e135768d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 9 Jan 2026 03:45:26 +0000 Subject: [PATCH] fix(toolbar): restore search icon on blur when input is empty --- .../components/panel/components/toolbar/toolbar.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/toolbar/toolbar.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/toolbar/toolbar.tsx index 303067dd92..060d191404 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/toolbar/toolbar.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/toolbar/toolbar.tsx @@ -305,12 +305,15 @@ export const Toolbar = forwardRef(function Toolbar( /** * Handle search input blur. * - * We intentionally keep search mode active after blur so that ArrowUp/Down + * Deactivates search mode when the input is empty, restoring the search icon. + * When there is search text, we keep search mode active so that ArrowUp/Down * navigation continues to work after the first move from the search input * into the triggers/blocks list (e.g. when initiated via Mod+F). */ const handleSearchBlur = () => { - // No-op by design + if (!searchQuery.trim()) { + setIsSearchActive(false) + } } /**