Autocomplete requires you to click twice in iOS after update to 1.11.0

前端 未结 12 1174
野趣味
野趣味 2020-12-01 02:41

Using jQuery 2.1.0 and jQuery.ui 1.11.0 Tested in iOS 7. iPhone and iPad Mini. Works on android and regular browsers.

The problem

We recently upgraded from

12条回答
  •  执笔经年
    2020-12-01 03:04

    Use fastclick.js it will solve this problem. I know this js is used for removing 300ms tap delay but it solved this problem also for me.

    1. Download the minified version of FastClick (alternatively, you can follow the instructions for installing the non-minified version here)

    2. Include the file in your project:

    3. Attach the FastClick object to the document after FastClick has been loaded:

      var attachFastClick = Origami.fastclick;

      attachFastClick(document.body);

    NOTE: If you try using FastClick the non-minified way, i.e:

    ;
    

    Then use

    FastClick.attach(document.body);

    but are including the minified file you will receive errors (telling you that FastClick is undefined). If you are using the minified file you must access it through Origami.

提交回复
热议问题