Skip to content

Commit 9f40b04

Browse files
fix(web): keep stash badge keyboard navigation working
1 parent d079085 commit 9f40b04

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/web/src/components/chat/ComposerStashMenu.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export const ComposerStashMenu = memo(function ComposerStashMenu(props: {
6868
if (
6969
!(target instanceof Node) ||
7070
(target !== document.body &&
71+
!(target instanceof Element && target.closest('[data-prompt-stash-badge="true"]')) &&
7172
!drawerRef.current?.contains(target) &&
7273
!composerFormRef.current?.querySelector('textarea, [role="textbox"]')?.contains(target))
7374
) {

0 commit comments

Comments
 (0)