【问题标题】:Typeahead bloodhound not working properly in nexus 5Typeahead Bloodhound 在 nexus 5 中无法正常工作
【发布时间】:2014-06-20 07:50:23
【问题描述】:

在输入字段中键入搜索字符时,有时会自动清除输入字段。我们仅在 nexus 5 中遇到了这个问题,其余所有设备都可以使用 typeahead.bundle.js (0.10.2) 正常工作。

【问题讨论】:

    标签: typeahead.js bootstrap-typeahead typeahead twitter-typeahead bloodhound


    【解决方案1】:

    如果您正在使用 keydown 事件或任何其他与键事件相关的事件,移动设备将不支持该事件。 event.keyCode, event.charCode, event.which 对于手机都是0。因此,不要使用任何此类事件处理程序。这可能会导致您的预输入出现问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-06
      • 2015-12-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-06
      相关资源
      最近更新 更多