Skip to content

Conversation

ahmed-saber
Copy link
Contributor

@ahmed-saber ahmed-saber commented Aug 22, 2025

if you have an autocomplete option like:

{ value: "api", text: "API Endpoint Configuration" }

Previously: When typing "api", the dropdown would be hidden since there's only one match.
Now: The dropdown will show "API Endpoint Configuration" even though there's only one match, giving users context about what they're selecting.

image

Ahmed Saber and others added 10 commits July 25, 2025 09:11
- Add support for object arrays with separate `text` and `value` properties
- Enable search functionality within both text and value fields
- Maintain full backward compatibility with existing string arrays
- Add helper functions: getOptionText(), getOptionValue(), getSearchableContent()
- Update filtering logic to handle both string and object formats
- Create comprehensive example (28_autocomplete_text_value_objects.html)
- Bump version to 10.3.0
feat: enhance autocomplete functionality with support for object arrays and multiple searchable fields
Refactored autocomplete logic to better support searching across multiple fields and improved match highlighting in dropdowns and hints. Added consistent case normalization and enhanced hint display to prioritize matches that start with the search token for improved user experience.
Replaces manual case checks with a normalizeCase utility for consistent case sensitivity logic throughout the autocomplete component. This improves maintainability and ensures uniform behavior for filtering and hint generation.
@ahmed-saber
Copy link
Contributor Author

@josdejong please review when you have time

@josdejong josdejong merged commit c1167c7 into josdejong:develop Aug 28, 2025
6 checks passed
@josdejong
Copy link
Owner

Thanks for this fix!

@josdejong
Copy link
Owner

Your fix is published now in v10.4.1. Thanks again 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants