select2 conflict with Woocommerce

Home Forums Calendar Products Events Calendar PRO select2 conflict with Woocommerce

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1562246
    Gilles
    Participant

    The version of select2 used by the events calendar conflicts with the version used by Woocommerce, creating a JS error on the Woocommerce admin product editor screen.

    This should be fixed on the events calendar side. You should only load select2 on the events calendar admin screens.

    #1562305
    Cliff
    Member

    Hi, Gilles. Sorry this is happening.

    I marked this thread as Pending Fix, which means it 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.

    #1571099
    Gilles
    Participant

    Hi Cliff,

    Thank you for the reply. Here is my temporary fix, let me know if you have comments on it:

    // Disable tribe select2 function when not in tribe admin screens
    function tribe_select2_conflict_fix() {
      $admin_helpers = Tribe__Admin__Helpers::instance();
      if ( ! $admin_helpers->is_screen() ) {
        wp_deregister_script( 'tribe-select2' );
      }
    }
    add_action( 'admin_enqueue_scripts', 'tribe_select2_conflict_fix', 11);
    #1571121
    Cliff
    Member

    I don’t see anything wrong with it; thanks for sharing.

    #1573987
    Victor
    Keymaster

    Hi Gilles!

    Just wanted to share with you that a new release of Events Calendar PRO is out, including a fix for this issue 🙂

    Find out more about this release → https://theeventscalendar.com/announcing-events-calendar-pro-4-4-29-2/

    We apologize for the delay and appreciate your patience while we worked on this.

    Please update the plugins and let us know if the fix works for your site.

    Best,
    Victor

    #1578379
    Gilles
    Participant

    Thank you very much!

    #1578713
    Cliff
    Member

    So glad this solve the issue for you! Thanks for letting us know.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘select2 conflict with Woocommerce’ is closed to new replies.