• When on mobile (or testing in Chrome/Safari dev tools for mobile), the first select option works fine but the additional select fields remain “disabled”. I’m using the Year first – engine mod.

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Some themes create a duplicated YMM widget for mobile view.
    And then the duplicated widget has the same HTML id as the original.

    Try to add line:

          
       this.element[0].id = this.element[0].id + '_';
    

    after the line:

    
       $.extend(this, this.options);
    

    in the file:
    wp-content/plugins/ymm-search/view/frontend/web/main.js

    Stanislav

    Thread Starter brad hogan

    (@bradley2083)

    That doesn’t seem to be working on mobile still > https://surgeline.mysites.io/

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    I see there is some error in the file:
    wp-content/plugins/ymm-search/ymm_ajax.php

    Try to enable wordpress debug logging by setting:

    
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    

    in the wp-config.php file.

    Then try to use the YMM Search plugin.

    Then check if the log file:
    wp-content/debug.log

    contains any errors.

    Stanislav

    Thread Starter brad hogan

    (@bradley2083)

    Just turned that on and not seeing any errors. I thought this was just an issue on mobile but appears to be on desktop too. You can select the year then all other fields remain disabled.

    Thread Starter brad hogan

    (@bradley2083)

    I’m seeing this in the console when I try to select options after picking the year: https://www.dropbox.com/s/6nxn56wb3086s0k/Screen%20Shot%202022-02-11%20at%205.58.51%20PM.png?dl=0

    Thread Starter brad hogan

    (@bradley2083)

    Another thing that might help figure this out is that it is only happening in my production / live environment. Locally it works great. So something is preventing the next select from being disabled when the first is selected but that’s way above my head. Any ideas what that could be?

    Thread Starter brad hogan

    (@bradley2083)

    I don’t think that user agent error is related so maybe ignore that. But I am seeing this when I look at the dev console for that 1 error that pops up when you select the year and get the error:

    jquery.min.js?ver=3.6.0:2          
    
    GET https://surgeline.mysites.io/wp-content/plugins/ymm-search/ymm_ajax.php?action=ymm_selector_fetch&cId=0&values%5B%5D=2017 500
    send @ jquery.min.js?ver=3.6.0:2
    ajax @ jquery.min.js?ver=3.6.0:2
    s.ajax.s.ajax @ jquery-migrate.min.js?ver=3.3.2:2
    loadLevel @ main.js?ver=5.9:232
    r.<computed> @ core.min.js?ver=1.13.0:116
    i @ jquery.min.js?ver=3.6.0:2
    i @ core.min.js?ver=1.13.0:116
    dispatch @ jquery.min.js?ver=3.6.0:2
    v.handle @ jquery.min.js?ver=3.6.0:2
    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Check your server logs.
    There should be some info about the recent 500 error.

    Also contact me by email pektsekye@gmail.com
    I cannot attach any modified files or screenshots here.

    Stanislav

    Thread Starter brad hogan

    (@bradley2083)

    Ok just sent that over to your inbox. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Dropdowns not working on mobile (disabled)’ is closed to new replies.