Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/aria/private/combobox/combobox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,12 @@ export class ComboboxPattern {
// Reset isDeleting when the user navigates, so that the highlight effect can run again.
this.isDeleting.set(false);

const popup = untracked(() => this.inputs.popup());
const popupExpanded = untracked(() => this.isExpanded());
if (popupExpanded) {
popup?.controlTarget()?.dispatchEvent(event);
}
untracked(() => {
const popup = this.inputs.popup();
if (this.isExpanded()) {
popup?.controlTarget()?.dispatchEvent(event);
}
});
}

/** Closes the popup when focus leaves the combobox and popup. */
Expand Down
Loading