jQuery UI自动完成功能不再允许使用鼠标选择选项 [英] Jquery UI Autocomplete doesn't allow options to be selected with mouse anymore

查看:76
本文介绍了jQuery UI自动完成功能不再允许使用鼠标选择选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近更新了jQuery ui及其自动完成插件-但是在较新的版本中,它不允许我单击鼠标来选择选项,而必须使用向上和向下箭头.如何通过鼠标单击重新启用选择?

I recently updated jquery ui and its autocomplete plugin - however in the newer version it won't let me select the options with a mouse click and I have to use the up and down arrows. How do I re-enable selection via mouse click?

新版本是1.9.1,旧版本是1.8.2

Btw the new version is 1.9.1, old version was 1.8.2

推荐答案

在我的情况下,鼠标选择功能已由过时的第三方jQuery插件禁用.该线程使我对可能出了问题的想法:

In my case the mouse selection capability was disabled by an outdated third party jQuery plugin. This thread gave me an idea of what might be wrong: http://forum.jquery.com/topic/autocomplete-click-to-select-item-not-working-in-1-9-1

我正在使用旧版本的jquery验证插件(https://github.com/jzaefferer/jquery-validation).我禁用了一个接一个的插件,以查看是哪个插件引起了错误行为.

I was using an old version of jquery validation plugin (https://github.com/jzaefferer/jquery-validation). I disabled one plugin after another to see which was causing the misbehaviour.

这篇关于jQuery UI自动完成功能不再允许使用鼠标选择选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆