jquery 自动完成 ie bug
我有 bassistance jquery-plugin-autocomplete 设置,并且在 FF 和 chrome 上工作正常,但在 IE 上有一个奇怪的行为。如果我使用箭头+回车键选择一个选项,结果将被选中并被视为已选择(->输入框并提交表单),但如果我用鼠标选择并应用了 active-css,则它不起作用(单击结果窗口就消失了)并且如果我快速单击以便 CSS 尚未应用它就可以工作。我在阅读了一些帖子后尝试了 bgiframe 但我认为这个问题是不同的。
有谁遇到过这个问题并知道如何解决它。
(我没有放置任何代码,因为我不要求任何人尝试修复 jquery 插件的错误,而只是看看是否有人自己遇到并修复了这个问题并可以分享)
谢谢!
I have bassistance jquery-plugin-autocomplete setup and working fine for FF and chrome but with IE there is a strange behaviour. If I select an option with the arrow+ enter key the result gets selected and treated as choosen (->input box and submit form) but if I select with the mouse and and the active-css is applied it does not work (on click the result window just dissapear) AND if I click fast so that the CSS does not yet apply it works. I tried the bgiframe after reading some posts but I think this problem is different.
Have anyone met this problem and know how to fix it.
(I do not put any code since I do not demand anyone to try to bugfix a jquery plugin, rather just see if somebody met and fixed this problem themselves and can share)
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 jquery-ui 1.8.6 中的自动完成功能中遇到了完全相同的问题,它已经接管了 bassistance 插件的开发。升级到最新版本(撰写本文时为 1.8.16)后,问题得到解决。这个所以答案引导我走向正确的方向方向。
由于您仍在使用 bassistance 版本(已弃用),我建议升级到最新的 jquery-ui 版本。
I had the exact same problem with the autocomplete in jquery-ui 1.8.6, which has taken over the development of the bassistance plugin. After upgrading to the latest version (1.8.16 at the time of writing) the problem was solved. This SO answer led me in the right direction.
As you're still using the bassistance version, which is depricated, I would suggest upgrading to the latest jquery-ui version.