Signup

Google auto suggest not working on mobiles

If you are having issues with our Google auto suggest feature on mobile devices please try adding the following code to your storepickup-addons.liquid file. 


This is most likely caused by package include in your theme called fastclick.min.js.


<script src="https://code.jquery.com/jquery-3.5.1.slim.js" integrity="sha256-DrT5NfxfbHvMHux31Lkhxg42LY6of8TaYyK50jnxRnM=" crossorigin="anonymous"></script>
<script type="text/javascript">
$(function() {
  var needsClick = FastClick.prototype.needsClick;
  FastClick.prototype.needsClick = function(target) { 
    if ( (target.className || '').indexOf('pac-item') > -1 ) {
      return true;
    } else if ( (target.parentNode.className || '').indexOf('pac-item') > -1) {
      return true;
    } else {
      return needsClick.apply(this, arguments);
    }
  };

  FastClick.attach(document.body);
});
</script>


A
Andrew is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.