User tests: Successful: Unsuccessful:
Pull Request resolves #44138 .
Improves the search behavior of the Fancy Select field by allowing matches to be found anywhere within option labels, not only near the beginning of the text
This is achieved by increasing the Fuse.js search distance parameter used by the component. The change preserves the existing fuzzy search behavior while making long labels searchable by words appearing later in the string.
No other functionality or configuration is modified
Go to Content and then Articles and then New Article
In the Category field, ensure there are categories with long names
Open the dropdown and type a word that appears toward the end of one of the category names
Repeat with words from the beginning, middle, and end of different labels
Verify that results are returned correctly in all cases
Search results may not appear when the search term matches text located later in the label
Search matches are found regardless of the term’s position within the label
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | JavaScript Repository NPM Change |
| Labels |
Added:
NPM Resource Changed
bug
PR-5.4-dev
|
||
I have adjusted fuse.js distance to 850 to align with the 255 character category title limit
@adarshdubey03 Will / could there be performance issues on large sites with changing distance value? (just a question, completely unsure of consequences)