jquery ui autocomplete positioning wrong

前端 未结 8 840
再見小時候
再見小時候 2020-12-01 06:17

using jquery ui 1.8 trying autocomplete

Everything works apart from that the ui-menu isn\'t positioned under my input element, but rather in the top left corner.

相关标签:
8条回答
  • 2020-12-01 07:06

    I had a similar issue, and after searching I found out I was missing a JS to fix this. In case someone stops by ensure to have a the "jquery.ui.position.js" script called as well.

    See http://jqueryui.com/demos/autocomplete/ under dependencies: UI Core UI Widget UI Position

    0 讨论(0)
  • 2020-12-01 07:16

    I simply changed my jquery-ui.min.js to the latest version and it fixed the positioning.

    from 1.8.16 to 1.8.23 and it worked!

    0 讨论(0)
提交回复
热议问题