Bug in Filter Bar: Category filter not working on mobile due to jQuery Chosen

Home Forums Calendar Products Filter Bar Bug in Filter Bar: Category filter not working on mobile due to jQuery Chosen

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1256593
    Mister
    Participant

    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:

    1. You take out the Chosen for mobile, and use a native select box with multi-select (you might need to change the AJAX triggers)
    2. 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/
    • This topic was modified 7 years ago by Mister. Reason: Added Select2 link and moved to Filter Bar forum
    • This topic was modified 7 years ago by Cliff.
    #1257074
    Cliff
    Member

    Hi, 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.

    #1257512
    Mister
    Participant

    This reply is private.

    #1257734
    Cliff
    Member

    I 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.

    #1257830
    Mister
    Participant

    You 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.

    #1258850
    Cliff
    Member

    I 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.

    #1331848
    Cliff
    Member

    Hi, 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! 🙂

    #1341840
    Support Droid
    Keymaster

    Hey 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Bug in Filter Bar: Category filter not working on mobile due to jQuery Chosen’ is closed to new replies.