Skip to content

Commit 636054b

Browse files
authored
fix(aria/combobox): escape key behavior (#32364)
1 parent 93bdd11 commit 636054b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/aria/private/combobox/combobox.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,13 +542,14 @@ export class ComboboxPattern<T extends ListItem<V>, V> {
542542
inputEl.value = '';
543543
}
544544
} else if (this.expanded()) {
545-
this.close();
546-
545+
this.expanded.set(false);
547546
const selectedItem = popupControls?.getSelectedItems()?.[0];
548547

549548
if (selectedItem?.searchTerm() !== this.inputs.inputValue!()) {
550549
popupControls?.clearSelection();
551550
}
551+
552+
return;
552553
}
553554

554555
this.close();

0 commit comments

Comments
 (0)