Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#5611 closed enhancement (wontfix)

Autocomplete: append item list to input instead of body

Reported by: bleeblee Owned by:
Priority: minor Milestone:
Component: ui.autocomplete Version: 1.8.1
Keywords: Cc:
Blocked by: Blocking:

Description

The documentation seems to imply the item list will be appended to the input tag (excerpt pasted below). But the item list is appended to the body. This will often cause the item list to be outside of the div containing the input, which can cause style problems. Would it be better to append the item list to the input?

==== Sample markup with jQuery UI CSS Framework classes

<input class="ui-autocomplete-input"/> <ul class="ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all">

<li class="ui-menu-item">

<a class="ui-corner-all">item 1</a>

</li> <li class="ui-menu-item">

<a class="ui-corner-all">item 2</a>

</li> <li class="ui-menu-item">

<a class="ui-corner-all">item 3</a>

</li>

</ul>

Change History (2)

comment:1 Changed 10 years ago by rdworth

Resolution: wontfix
Status: newclosed

The element has to be placed at the end of the body to ensure it is the top-most displayed element. In IE, DOM order trumps z-index.

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

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.