Skip to content

Commit b54ca60

Browse files
authored
fix(chat): fix download & clear popover staying open after pressing in floating chat (#2192)
1 parent e581608 commit b54ca60

File tree

1 file changed

+2
-4
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat

1 file changed

+2
-4
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat/chat.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -856,8 +856,7 @@ export function Chat() {
856856
>
857857
<PopoverScrollArea>
858858
<PopoverItem
859-
onClick={(e) => {
860-
e.stopPropagation()
859+
onClick={() => {
861860
if (activeWorkflowId) exportChatCSV(activeWorkflowId)
862861
setMoreMenuOpen(false)
863862
}}
@@ -867,8 +866,7 @@ export function Chat() {
867866
<span>Download</span>
868867
</PopoverItem>
869868
<PopoverItem
870-
onClick={(e) => {
871-
e.stopPropagation()
869+
onClick={() => {
872870
if (activeWorkflowId) clearChat(activeWorkflowId)
873871
setMoreMenuOpen(false)
874872
}}

0 commit comments

Comments
 (0)