Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.1] Choices does not find results in a phrase of more than 30 characters #44138

Open
JoomBall opened this issue Sep 25, 2024 · 2 comments
Open

Comments

@JoomBall
Copy link

JoomBall commented Sep 25, 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

@brianteeman
Copy link
Contributor

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

@JoomBall
Copy link
Author

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?

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

No branches or pull requests

3 participants