Home › Forums › Calendar Products › Filter Bar › Filter Bar autocomplete not working with sub-categories
- This topic has 3 replies, 3 voices, and was last updated 8 years, 10 months ago by Leah.
-
AuthorPosts
-
January 12, 2015 at 3:18 am #931454Kari TurunenParticipant
Hi,
the filter bar add-on autocomplete field type is not working with sub-categories. Chosen starts the search from the beginning of the string and as there is with sub-categories in the option it does not work.
I think easiest way to fix this would be to change filter-scripts.js line 109 from
$( ".tribe-events-filter-autocomplete .chosen-dropdown" ).chosen( {no_results_text: no_results_text, width: "100%", display_selected_options: false} );
to
$( ".tribe-events-filter-autocomplete .chosen-dropdown" ).chosen( {no_results_text: no_results_text, width: "100%", display_selected_options: false, search_contains: true} );
as setting ‘search_contains’ to true allows searching from the middle of the string, so the &nsbp;-tags are ignored. “Setting this option to true allows matches starting from anywhere within a word.” http://harvesthq.github.io/chosen/options.html or the option output should be changed to ” Word” as Chosen starts searching from the beginning of the word.
January 12, 2015 at 12:47 pm #931725BrianKeymasterThanks for picking this up.
I tested it out and see what you mean. I will write a bug report to get this resolved.
Thanks
January 28, 2015 at 7:34 am #938498BrianKeymasterI just wanted to update you.
We have a bug fix for this and it should be included in the next release.
We will update this ticket once we have more information.
I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂
June 2, 2015 at 2:22 pm #966746LeahMemberHi there,
Thank you for your support and patience while we worked on this issue. We are happy announce that we have incorporated a fix into our upcoming 3.10 release. Keep an eye out for a release announcement on our site and for updates available on your WordPress dashboard.
While we have thoroughly tested this release and are confident of its quality, it is impossible to account for every edge case in the wide world of WordPress. If you run into trouble with the new version or you don’t see your reported issue corrected, please start a new thread and we will be happy to work with you.
Thanks again for your patience here. We’re excited to get this version out the door and into your hands!
Best,
The Events Calendar Team -
AuthorPosts
- The topic ‘Filter Bar autocomplete not working with sub-categories’ is closed to new replies.