No Code Attached Yet bug
avatar JoomBall
JoomBall
25 Sep 2024

Steps to reproduce the issue

Any selector that uses 'Joomla.form.field.list-fan-select' or 'Joomla.form.field.groupedlist-Fancy-select' does not find chains in a text from approximately more than 30 characters.

For example, create a category with a long text and in listing articles performs a search for the end of the phrase.

Expected result

I should find any word throughout the sentence.

Actual result

In the image if I begin to perform the search from the word 'activitats', it does not find the category.
select-choices

With word 'activitats' or 'consell' or 'esportiu' ...
select-2

System information (as much as possible)

Joomla 5.1.4

Additional comments

I would also like to try, is there any example of using AJAX searches?

Well, I found an example in 'C:\xampp\htdocs\joomla\layouts\joomla\form\field\tag.php' but the same thing happens when creating a label with long text. It turns out that Ajax returns correct answers but Choices do not visualize them.

As I say, it seems that there is a limit of the first 30 characters in the chain.

Same problem in Menus elements selector and with any selector that uses choices.

Thank you so much

avatar JoomBall JoomBall - open - 25 Sep 2024
avatar joomla-cms-bot joomla-cms-bot - change - 25 Sep 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Sep 2024
avatar JoomBall JoomBall - change - 25 Sep 2024
The description was changed
avatar JoomBall JoomBall - edited - 25 Sep 2024
avatar JoomBall JoomBall - change - 25 Sep 2024
The description was changed
avatar JoomBall JoomBall - edited - 25 Sep 2024
avatar brianteeman
brianteeman - comment - 30 Sep 2024

Confirmed. I believe that there is a 36 character limit as part of the choices.js script.

avatar JoomBall
JoomBall - comment - 30 Sep 2024

Hi @brianteeman ,

Thanks for your reply.

I didn't expect the limit to be in the choices.js file and I didn't see a variable to be able to modify this value. I modified the value and it gives an error.

So, do you advise me to ask the question at https://github.com/Choices-js/Choices/issues?

avatar Quy Quy - change - 4 Oct 2024
Labels Added: bug
avatar Quy Quy - labeled - 4 Oct 2024

Add a Comment

Login with GitHub to post a comment