Skip to main content

Search and Top Navigation

#10533 closed bug (notabug)

Opened August 11, 2014 09:32AM UTC

Closed August 21, 2014 12:33PM UTC

Last modified August 21, 2014 01:10PM UTC

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.

Attachments (0)
Change History (3)

Changed August 11, 2014 12:57PM UTC by tj.vantoll comment:1

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.

Changed August 21, 2014 12:33PM UTC by scottgonzalez comment:2

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/

Changed August 21, 2014 01:10PM UTC by tj.vantoll comment:3

Replying to [comment:2 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.