• I do not want the page to scroll to the bottom where the store locator is. The option under ‘User Experience’ in settings is not checked.

    Through some diagnostics I have found that the problem lies in the error checking. The error checking is firing immediately upon page load causing the cursor to focus on the input and scroll.

    if (!$(“#wpsl-search-input”).val()) {$(“#wpsl-search-input”).addClass(“wpsl-error”).focus();
    }

    As a temporary fix I have gone in and removed the .focus() within the plugin code but would prefer a permanent solution.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi there,

    Thanks for reaching out.

    As a matter of fact the “On page load move the mouse cursor to the search field?” option, if disabled, should prevent the search field from getting focus, and the error you mention only should trigger if a search is being requested, so I am a bit puzzled you were having this issue in the first place because no search is being requested by default when the plugin loads.

    Do you have any other custom javascript or something in your custom template that could be triggering a search when the plugin loads?

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Autoscrolling to locator even when option under settings is not checked.’ is closed to new replies.