In my Ruby on Rails application, I used jQuery UI 1.9.2 (via jquery-ui-rails ). I had an Autocomplete field in the Modal Dialog form that populated this dropdown with Ajax and Json. It worked correctly, showing me the right sentences.
Subsequently, I upgraded to jQuery UI 1.10.3 (using bundle update ), and now the Autocomplete popup list box no longer works. It does not show errors in the JavaScript console. In fact, this shows that the returned Json is correct.
I tried to rewrite the autocomplete function in JS to make a call manually (by calling Autocomplete source: $.ajax {} and nothing else.
I was suggested that the problem might be that jQuery changed something that caused the jquery-ui-rails stone to stop working, but after sending an error to them, it turns out that this is not a problem.
Any help would be appreciated.
NOTE to the answers:
mhu answer is correct and you should avoid faking z-Indexes where possible (so I marked it as correct). However, in my case (when the Autocomplete text box is in a modal dialog box), the drop-down list will be displayed only within the width of the dialog box (if the text is wider, it is hidden and you cannot use the scroll bar). Since I did not want this, I did what I described in my answer below, and it works. I made various comments and notes for myself to make sure that it still works after any jQueryUI update.
Theo Scholiadis Jun 12 '13 at 10:00 2013-06-12 10:00
source share