jQuery UI autocomplete select event not working with mouse click

前端 未结 9 830
星月不相逢
星月不相逢 2020-12-28 15:09

I have a list of links, and I have this search box #reportname. When the user types in the search box, autocomplete will show the text of the links in a list.



        
9条回答
  •  自闭症患者
    2020-12-28 15:55

    I recently encountered the exact same problem (autocomplete items not clickable, keyboard events working).

    Turned out that in my case the answer was not at all JS related. The autocomplete UI was not clickable simply because it was lacking an appropriate value for the z-index CSS property.

    .ui-autocomplete {
        z-index: 99999; /* adjust this value */
    }
    

    That did the trick.

提交回复
热议问题