NPM Resource Changed bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar adarshdubey03
adarshdubey03
19 Mar 2026

Pull Request resolves #44138 .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

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

Testing Instructions

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

Actual result BEFORE applying this Pull Request

Search results may not appear when the search term matches text located later in the label

Expected result AFTER applying this Pull Request

Search matches are found regardless of the term’s position within the label

Link to documentations

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

avatar adarshdubey03 adarshdubey03 - open - 19 Mar 2026
avatar adarshdubey03 adarshdubey03 - change - 19 Mar 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Mar 2026
Category JavaScript Repository NPM Change
avatar exlemor
exlemor - comment - 19 Mar 2026

@adarshdubey03 Will / could there be performance issues on large sites with changing distance value? (just a question, completely unsure of consequences)

avatar adarshdubey03
adarshdubey03 - comment - 19 Mar 2026

@exlemor it only affects match scoring within each item, not how many items are processed, so performance should not be impacted even on large lists

avatar richard67 richard67 - change - 3 Apr 2026
Labels Added: NPM Resource Changed bug PR-5.4-dev
avatar adarshdubey03
adarshdubey03 - comment - 3 Apr 2026

I have adjusted fuse.js distance to 850 to align with the 255 character category title limit

Add a Comment

Login with GitHub to post a comment