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
{{ message }}
Repository navigation
[autocomplete] Fix Autocomplete not using its internal filter method when mode is list - #3936
Fix Autocomplete not using its internal baseFilter.
When mode="list" (the default), Autocomplete was not using its internal baseFilter and instead relied on the Combobox's default filtering behavior. This worked previously only because both used the same logic.
This change ensures Autocomplete consistently applies its own baseFilter in list mode, rather than falling back to Combobox filtering.
ZeeshanTamboli
changed the title
[autocomplere] Fix Autocomplete not using its internal filter method when mode is list
[autocomplete] Fix Autocomplete not using its internal filter method when mode is listFeb 2, 2026
This PR fixes Autocomplete to consistently use its internal baseFilter method when mode="list" (the default), instead of falling back to the Combobox component's default filtering behavior.
What changed:
Line 97: Changed other.filter to baseFilter in the non-both mode branch
Line 102: Removed other.filter from the dependency array since it's no longer used in this context
Why this matters:
Previously, when mode="list", the Autocomplete would pass other.filter (which is undefined if not provided) to Combobox, causing Combobox to use its own default filter. While both filters used the same logic (collator.contains), this created an unnecessary dependency on Combobox's implementation details.
Impact:
Behavior remains unchanged (both filters use the same logic)
Slightly improved performance by avoiding redundant filter creation
Better encapsulation - Autocomplete now owns its filtering logic
Reduced coupling between Autocomplete and Combobox
Confidence Score: 5/5
This PR is safe to merge with no concerns
The change is a small, well-contained refactoring that improves code architecture without changing behavior. The logic is correct for all four modes (list, both, inline, none), and the dependency array is properly updated. Existing tests verify the filtering behavior continues to work as expected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Autocomplete not using its internal
baseFilter.When
mode="list"(the default),Autocompletewas not using its internalbaseFilterand instead relied on the Combobox's default filtering behavior. This worked previously only because both used the same logic.This change ensures Autocomplete consistently applies its own
baseFilterinlistmode, rather than falling back to Combobox filtering.This will reduce the computation time slightly.