Forums Forums Search & Filter Pro Auto selecting First Option of Dropdown

  • This topic has 16 replies, 2 voices, and was last updated 9 years ago by Anonymous.
Viewing 10 posts - 1 through 10 (of 17 total)
  • Anonymous
    #98568

    Hi Guys,

    I have an odd issue. I have a search field listing counties as show in the below screenshot:

    http://prntscr.com/en1x73

    The issue is that on page load the first option of the dropdown is being selected rather than the “All Counties” option.

    Here is a screenshot of the setup.

    http://prntscr.com/en1xpk

    Do you have any ideas? Any help would be amazing.

    Thanks

    Trevor
    #98675

    Try using it as a Combobox instead. But, if you do this, go into the main plugin settings and change it from Chosen to Select2.

    Anonymous
    #98686
    This reply has been marked as private.
    Trevor
    #98690

    Are you using a cache plugin like W3TotalCache, or a CDN like cloudflare?

    Anonymous
    #98697

    Yes, we have got CloudFlare and WP Rocket running on the site.

    Anonymous
    #98699

    FYI, WP Rocket does not cache when we are logged in as admin and the issue is still present.

    Anonymous
    #98703

    I have turned off CloudFlare and WP Rocket and we still have the same issue. Sorry.

    Trevor
    #98730

    If you examine the HTML code using the inspector, something (probably javascript) is making BOTH the ALL and first value the default. This is almost certainly a plugin doing this. You will need to progressively deactivate plugins until you find the one that might be doing this.

    Anonymous
    #98758

    I cannot see that the top one has the selected=”selected”, see the screenshot:

    http://prntscr.com/en5m13

    Anonymous
    #98760

    I have spotted this now. Weird it didn’t happen when I first looked.

    I disabled all plugins apart from the below as they are required to load the page:

    http://prntscr.com/en5ph4

    The issue still occurs I’m afraid.

Viewing 10 posts - 1 through 10 (of 17 total)