• In some cases, clicking a swatch activates the proper dropdown option, but clicking a swatch of the next group unselects the first swatch. The dropdown values stays, just the swatch looses it’s wpcvs-selected class.

    I managed to trace this to the following code in frontend.js

    if (term != '') {
                      $(this).
                          parent().
                          find('.wpcvs-term[data-term="' + term + '"]').
                          addClass('wpcvs-selected');
                      $(document).trigger('wpcvs_reset_attr', [attr, term, title]);
                    }

    $(this).parent() resolves to the select-container (.avada-select-parent) and then the .find assumes .wpcvs-term is a child of that. but .wpcvs-terms is a sibling, not a child.

    $(this).parent().parent() solves the problem. My question to you is to evaluate this and perhaps integrate the fix and release a new version ??

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Swatches not always activating’ is closed to new replies.