You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select an item, OR type something and click off to blur.
With dropdown closed, click X button.
Textbox is set to blank, but items are still filtered by previous textbox contents.
Claude's opinion on why this happens
This happens because ComboboxCancel's click handler clears filterSearch, clears the DOM input value, calls inputElement.focus(), and only then clears modelValue. Since the input was previously blurred, that .focus() call synchronously fires a real focus event, which (for openOnFocus) triggers onOpenChange(true). In both ComboboxRoot and AutocompleteRoot, onOpenChange(true) re-stamps filterSearch from the current modelValue before yielding at await nextTick() — but at that point modelValue hasn't been cleared yet (that happens in the line after .focus() returns), so filterSearch gets set back to the stale text and is never corrected afterward. The fix should be to clear modelValue before calling .focus() in the Cancel handler, so that when the focus-triggered re-open reads modelValue, it reads the already-cleared value.
changed the title [-][Bug] AutocompleteCancel doesn't refresh dropdown items when clicked[/-][+][Bug] Clicking `AutocompleteCancel` when input unfocused doesn't refresh dropdown items[/+]on Oct 4, 2026
Activity
[-][Bug] AutocompleteCancel doesn't refresh dropdown items when clicked[/-][+][Bug] Clicking `AutocompleteCancel` when input unfocused doesn't refresh dropdown items[/+]fix(Autocomplete): clear stale filter when cancelling a blurred input (…