Skip to content

Commit 68bc68b

Browse files
enkoclaude
andcommitted
fix(frontend): Fix filter modal not closing on Escape key
Remove the isFilterModeActive check from the Escape key handler in FacetDropdown. This fixes a race condition where KeyboardShortcuts would clear the filter mode state before FacetDropdown could handle the Escape key, leaving the regular dropdown open instead of closing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 381e0b4 commit 68bc68b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/frontend/src/lib/components/search/FacetDropdown.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ $effect(() => {
214214
<!-- Handle Escape key to close modal -->
215215
<svelte:window
216216
onkeydown={(e) => {
217-
if (e.key === 'Escape' && isOpen && $isFilterModeActive) {
217+
if (e.key === 'Escape' && isOpen) {
218218
e.preventDefault();
219219
e.stopPropagation();
220220
closeModal();

0 commit comments

Comments
 (0)