• Resolved ekimbo

    (@ekimbo)


    First off, great plugin!
    I am running BTF v: 1.2.9. The auto select functionality isn’t working with the select2 library enabled but works with select2 library disabled.
    Below are the 2 functions I have tried.
    —–
    jQuery(‘.beautiful-taxonomy-filters-select’).change(function(){
    jQuery(‘#beautiful-taxonomy-filters-form’).submit();
    });
    —–
    jQuery(‘.beautiful-taxonomy-filters-select’).on(‘change’, function(){
    jQuery(‘#beautiful-taxonomy-filters-form’).submit();
    });

    Any help is appreciated!

    https://www.ads-software.com/plugins/beautiful-taxonomy-filters/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The code works for me, with and without Select2, BTF 1.2.9 and WordPress 4.4.2.

    Perhaps it is:
    – Browser specific, my test was in Chrome.
    – Some other script is blocking this script.
    – Jquery is not available

    $('.beautiful-taxonomy-filters-select').on('change', function(){
        $('#beautiful-taxonomy-filters-form').submit();
    });
    Plugin Author Jonathandejong

    (@jonathandejong)

    Hi Ekimbo,

    It should work with the latest BTF which runs select2 v 4.0.2.

    However it is possible that you have another plugin which initiates select2 before BTF does and loads in an older version. I know version 4.0.0 and possibly 4.0.1 have that issue.

    If you check your source code you should be able to see where select2.full.min.js is being loaded from.

    Thread Starter ekimbo

    (@ekimbo)

    I will look in to this. Chances are it’s another plugin causing the issue.
    Thanks for the responses.
    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Automatically submit filter issue with Select2’ is closed to new replies.