From 7cbde5dceb7c5d186ca0272ff5665e4f92ec25f5 Mon Sep 17 00:00:00 2001 From: Wagner Maciel Date: Mon, 17 Nov 2025 12:51:49 -0500 Subject: [PATCH] fix(aria/combobox): escape key behavior --- src/aria/private/combobox/combobox.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/aria/private/combobox/combobox.ts b/src/aria/private/combobox/combobox.ts index 4c12f9ae837f..ada494f4d471 100644 --- a/src/aria/private/combobox/combobox.ts +++ b/src/aria/private/combobox/combobox.ts @@ -542,13 +542,14 @@ export class ComboboxPattern, V> { inputEl.value = ''; } } else if (this.expanded()) { - this.close(); - + this.expanded.set(false); const selectedItem = popupControls?.getSelectedItems()?.[0]; if (selectedItem?.searchTerm() !== this.inputs.inputValue!()) { popupControls?.clearSelection(); } + + return; } this.close();