• Resolved bb3

    (@bb3)


    Im using the option icon on mobile and search bar on desktop. Sometimes the icon is disappearing and breaking the layout. It looks like wrong classes are being loaded

    no icon (broken)
    dgwt-wcas-search-wrapp dgwt-wcas-no-submit woocommerce js-dgwt-wcas-layout-icon-flexible dgwt-wcas-layout-icon-flexible js-dgwt-wcas-mobile-overlay-enabled dgwt-wcas-active

    Correct classes
    dgwt-wcas-search-wrapp dgwt-wcas-no-submit woocommerce js-dgwt-wcas-layout-icon-flexible dgwt-wcas-layout-icon-flexible js-dgwt-wcas-mobile-overlay-enabled js-dgwt-wcas-layout-icon dgwt-wcas-layout-icon dgwt-wcas-layout-icon-flexible-loaded

Viewing 1 replies (of 1 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hello,

    There is one condition to create all neccessary classes:

    jQuery(window).width() < dgwt_wcas.mobile_breakpoint

    You can check it manually by pasting it in the browser console.

    This condition is checked only on page load, not after the rotate screen.

    Best
    Damian

Viewing 1 replies (of 1 total)
  • The topic ‘Wrong classes are being loaded on mobile’ is closed to new replies.