Skip to content

Commit 96c31b7

Browse files
fix(chat): close mention popup before falling through Enter when results empty
1 parent ca1e93a commit 96c31b7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/desktop/src/renderer/components/Chat/ChatInterface/components/TiptapPromptEditor/TiptapPromptEditor.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,8 @@ export function TiptapPromptEditor({
477477
mention.tiptapCommand({ path: file.relativePath });
478478
return true;
479479
}
480+
// No results — close the popup then let Enter fall through to submit
481+
setMentionState(null);
480482
return false;
481483
}
482484
return false;

0 commit comments

Comments
 (0)