We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f55ea0 commit 1c47061Copy full SHA for 1c47061
1 file changed
src/aria/private/combobox/combobox.ts
@@ -235,11 +235,12 @@ export class ComboboxPattern {
235
// Reset isDeleting when the user navigates, so that the highlight effect can run again.
236
this.isDeleting.set(false);
237
238
- const popup = untracked(() => this.inputs.popup());
239
- const popupExpanded = untracked(() => this.isExpanded());
240
- if (popupExpanded) {
241
- popup?.controlTarget()?.dispatchEvent(event);
242
- }
+ untracked(() => {
+ const popup = this.inputs.popup();
+ if (this.isExpanded()) {
+ popup?.controlTarget()?.dispatchEvent(event);
+ }
243
+ });
244
}
245
246
/** Closes the popup when focus leaves the combobox and popup. */
0 commit comments