[英]Up and Down arrows' Navigation not working on Bootstrap Typeahead
I'm using Twitter Bootstrap's Jquery Typeahead plugin . 我正在使用Twitter Bootstrap的Jquery Typeahead插件 。
I've integrated it, adding the appropriate .js file, plus setting the data-items
, data-source
and data-provide
values for the desired <input>
field. 我已经集成了它,添加了适当的.js文件,并为所需的
<input>
字段设置了data-items
, data-source
和data-provide
值。
<input data-provide='typeahead'
data-items='4'
data-source='["Alabama","Colorado","Texas"]'
type='text'
name='someName'
id='someId'>
It works. 有用。 The thing is that when the list pops down, I cannot navigate using the arrows (up, down) - as in the example.
问题是,当列表弹出时,我无法使用箭头(向上,向下)导航 - 如示例中所示。
What am I doing wrong??? 我究竟做错了什么???
UPDATE : Seems like it's a bug regarding Firefox (I now notice it does work under Chrome); 更新:好像它是关于Firefox的一个bug(我现在发现它的Chrome下工作); any ideas on how this could be solved?
关于如何解决这个问题的任何想法?
This will solve your problem. 这将解决您的问题。
You can edit bootstrap-typeahead.js line 171 您可以编辑bootstrap-typeahead.js第171行
if ($.browser.webkit || $.browser.msie) {
to this 对此
if ($.browser.webkit || $.browser.msie || $.browser.mozilla)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.