jQueryUI autocomplete not working with dialog and zIndex

前端 未结 14 1095
孤独总比滥情好
孤独总比滥情好 2021-02-05 00:51

I ran into an interesting issue with jQueryUI autocomplete in a dialog box.

My dialog HTML looks like this:

14条回答
  •  [愿得一人]
    2021-02-05 01:05

    appendTo: Which element the menu should be appended to. When the value is null, the parents of the input field will be checked for a class of "ui-front". If an element with the "ui-front" class is found, the menu will be appended to that element. Regardless of the value, if no element is found, the menu will be appended to the body.

    This means that

    will do the trick. No need to use the option appendTo, that did not work for me.

提交回复
热议问题