Skip to content

Commit 969fd59

Browse files
committed
Autocomplete: Updated appendTo option based on .ui-front implementation.
1 parent 34dae5e commit 969fd59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/autocomplete.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<note id="functional-css"/>
3030
<added>1.8</added>
3131
<options>
32-
<option name="appendTo" type="Selector" default='"body"' example-value='"#someElem"'>
33-
<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>
32+
<option name="appendTo" type="Selector" default="null" example-value='"#someElem"'>
33+
<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>
3434
</option>
3535
<option name="autoFocus" type="Boolean" default="false" example-value="true">
3636
<desc>If set to <code>true</code> the first item will automatically be focused when the menu is shown.</desc>

0 commit comments

Comments
 (0)