Skip to content

Conversation

@ahmed-saber
Copy link
Contributor

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

The changes in this merge request are:

  1. We always show only the label, even if the text matches one of the values
  2. The dropdown will remain visible as long as the text does not match the intended value

Ahmed Saber added 7 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.
Corrects the use of rowText in getHighlightedTextParts to ensure proper highlighting, and updates dropdown suppression logic to compare against the option value instead of text. This improves accuracy in autocomplete display and behavior.
@ahmed-saber ahmed-saber force-pushed the feature/show-dropdown-single-element branch from 37a303c to 7e72fae Compare August 20, 2025 06:57
@ahmed-saber ahmed-saber changed the title Feature/show dropdown for single element when it's async call Fix autocomplete text highlighting and dropdown logic Aug 20, 2025
@josdejong
Copy link
Owner

Thanks, nice improvements!

@josdejong josdejong merged commit 80ca255 into josdejong:develop Aug 22, 2025
6 checks passed
@josdejong
Copy link
Owner

Published now in v10.4.0.

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