Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#10533 closed bug (notabug)

Autocomplete menu in a modal dialog is behind the dialog

Reported by: Choppel Owned by:
Priority: minor Milestone: none
Component: ui.autocomplete Version: 1.11.0
Keywords: Cc:
Blocked by: Blocking:

Description

This happens in 1.11.0. See http://jsfiddle.net/26F4T/

In 1.10.4 it worked. http://jsfiddle.net/J5r48/ However. When I click on the dialog in 1.10.4, the menu gets behind the dialog and stays there forever.

It seems to work in a non-modal dialog.

Tested in FF.

Change History (3)

comment:1 Changed 5 years ago by tj.vantoll

Hmmmm, this works fine if you set the appendTo option (http://jsfiddle.net/tj_vantoll/26F4T/1/), so I don't believe this is a bug. But it is odd that this only occurs for modal dialogs. I'm curious what scott.gonzalez thinks.

comment:2 Changed 5 years ago by Scott González

Resolution: notabug
Status: newclosed

This is working properly. You should be appending the input before initializing the autocomplete for the stacking logic to work. http://jsfiddle.net/26F4T/2/

comment:3 in reply to:  2 Changed 5 years ago by tj.vantoll

Replying to scott.gonzalez:

This is working properly. You should be appending the input before initializing the autocomplete for the stacking logic to work. http://jsfiddle.net/26F4T/2/

Your example still depends on overflow: hidden, but that's something we should be addressing for #10543.

Note: See TracTickets for help on using tickets.