Home › Forums › Calendar Products › Filter Bar › Bug in Filter Bar: Category filter not working on mobile due to jQuery Chosen
- This topic has 8 replies, 2 voices, and was last updated 6 years, 7 months ago by Mister.
-
AuthorPosts
-
March 20, 2017 at 1:25 am #1256593MisterParticipant
Hi,
Filter Bar uses jQuery Chosen (https://harvesthq.github.io/chosen/) for the Event Category filter. jQuery Chosen does not work on mobile due to missing support (see the statement on Github: https://github.com/harvesthq/chosen/pull/1388, also on Stackoverflow: http://stackoverflow.com/a/22016765).
However, Filter Bar still tries to use Chosen on mobile. You can see this on your demo site: http://wpshindig.com/events/ Please try to access it with your mobile (I could only test on iOS), then tap on “Show Filters”, then on “Event Category”, then tap on the Select Box. The iOS panel for making the selecting will appear. Please wait a short moment without making any selection. What will then happen is: The Chosen select box will automatically pick the first entry in the list and perform the AJAX refresh. So it is never possible for the user to make any input!
This is a showstopper issue. I can’t understand why the documentation/bug list of the jQuery chosen wasn’t studied or why this was missed on testing prior to release.
Please provide a fix asap. It is awkward to run a productive site with such a bug (in particular as most traffic comes from mobile). Otherwise Filter Bar is completely useless for me.
To be honest, I don’t think that you can fix the Chosen plugin, so I see only to options to solve:
- You take out the Chosen for mobile, and use a native select box with multi-select (you might need to change the AJAX triggers)
- You use jQuery Select2 (https://select2.github.io/) instead of jQuery Chosen, which is the better solution in my view. Select2 is preferable to Chosen, as you can read on various pages if you google “Select2 vs. Chosen”, e.g. https://www.sitepoint.com/jquery-select-box-components-chosen-vs-select2/
March 20, 2017 at 10:19 pm #1257074CliffMemberHi, Mister.
Thanks for your very detailed bug report.
I confirmed this occurs on my iOS device as well and have passed this along to our developers.
I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now. They need to assign it, code it, test it, and schedule it for release.
I apologize for this issue and appreciate your understanding and patience.
For the time being, the workaround suggestion is to change to a different field type instead of Dropdown.
March 21, 2017 at 12:20 pm #1257512MisterParticipantThis reply is private.
March 21, 2017 at 7:56 pm #1257734CliffMemberI am sorry to hear a workaround like Autocomplete or Checkbox field type won’t work for you.
As far as fixing it soon, this will be prioritized and triaged like all other bug reports and will not be fixed/enhanced soon.
You may be interested in referencing our Release Schedule.
If there’s a code snippet you’d like me to put some eyes on or something else I can help you with, please update this ticket or create a new ticket if it’s a separate issue.
Thank you very much for your understanding.
If you need some coding help, you may want to ask your developer or reference our documentation and list of known customizers.
March 21, 2017 at 11:06 pm #1257830MisterParticipantYou write:
…will be prioritized and triaged like all other bug reports and will not be fixed/enhanced soon.
So let me summarize:
- I bought a “professional” product for $89, which does not work as intended
- Because you won’t fix it soon, I have the choice to fix it on my own cost or to not use it as intended
This is a shame!
I am not going to buy another product from your company and I cannot recommend to anyone to buy your software.
March 23, 2017 at 9:45 am #1258850CliffMemberI understand you’re very disappointed in this situation and have also sent email about it.
As indicated in email exchanges with Barry, we’ll continue keeping you posted on this.
Thanks again for highlighting this issue in such a detailed manner.
August 7, 2017 at 3:45 pm #1331848CliffMemberHi, Mister.
Filter Bar v4.5 included this change: The Select2 script replaces the Chosen script for drop-down and autocomplete filter types.
Please test it out and let me know how it goes for you.
If you come across any other issues, please create a new, separate thread.
Thanks! 🙂
August 29, 2017 at 9:36 am #1341840Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Bug in Filter Bar: Category filter not working on mobile due to jQuery Chosen’ is closed to new replies.