Permalink
Browse files

Autocomplete: Updated appendTo option based on .ui-front implementation.

  • Loading branch information...
scottgonzalez committed Dec 14, 2012
1 parent 53ad686 commit dc27fd73e7e0fef1574bb5aa4ae893e2091585e1
Showing with 2 additions and 2 deletions.
  1. +2 −2 entries/autocomplete.xml
View
@@ -37,8 +37,8 @@
<note id="functional-css"/>
<added>1.8</added>
<options>
- <option name="appendTo" type="Selector" default='"body"' example-value='"#someElem"'>
- <desc>Which element the menu should be appended to. Override this when the autocomplete is inside a <code>position: fixed</code> element. Otherwise the popup menu would still scroll with the page.</desc>
+ <option name="appendTo" type="Selector" default="null" example-value='"#someElem"'>
+ <desc>Which element the menu should be appended to. When the value is <code>null</code>, the parents of the input field will be checked for a class of <code>ui-front</code>. If an element with the <code>ui-front</code> 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.</desc>
</option>
<option name="autoFocus" type="Boolean" default="false" example-value="true">
<desc>If set to <code>true</code> the first item will automatically be focused when the menu is shown.</desc>

0 comments on commit dc27fd7

Please sign in to comment.