【发布时间】:2014-06-20 07:50:23
【问题描述】:
在输入字段中键入搜索字符时,有时会自动清除输入字段。我们仅在 nexus 5 中遇到了这个问题,其余所有设备都可以使用 typeahead.bundle.js (0.10.2) 正常工作。
【问题讨论】:
标签: typeahead.js bootstrap-typeahead typeahead twitter-typeahead bloodhound
在输入字段中键入搜索字符时,有时会自动清除输入字段。我们仅在 nexus 5 中遇到了这个问题,其余所有设备都可以使用 typeahead.bundle.js (0.10.2) 正常工作。
【问题讨论】:
标签: typeahead.js bootstrap-typeahead typeahead twitter-typeahead bloodhound
如果您正在使用 keydown 事件或任何其他与键事件相关的事件,移动设备将不支持该事件。 event.keyCode, event.charCode, event.which 对于手机都是0。因此,不要使用任何此类事件处理程序。这可能会导致您的预输入出现问题。
【讨论】: