Skip to content

Commit 8d4b75e

Browse files
committed
Autocomplete, Dialog: Note that the appendTo option should not be changed while the widget is open.
1 parent 823c3d2 commit 8d4b75e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

entries/autocomplete.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
<added>1.8</added>
4040
<options>
4141
<option name="appendTo" type="Selector" default="null" example-value='"#someElem"'>
42-
<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>
42+
<desc>
43+
<p>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.</p>
44+
<div class="warning"><strong>Note:</strong> The <code>appendTo</code> option should not be changed while the suggestions menu is open.</div></desc>
4345
</option>
4446
<option name="autoFocus" type="Boolean" default="false" example-value="true">
4547
<desc>If set to <code>true</code> the first item will automatically be focused when the menu is shown.</desc>

entries/dialog.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@
6666
<added>1.0</added>
6767
<options>
6868
<option name="appendTo" type="Selector" default='"body"' example-value='"#someElem"' added="1.10.0">
69-
<desc>Which element the dialog (and overlay, if <a href="#option-modal">modal</a>) should be appended to.</desc>
69+
<desc>
70+
<p>Which element the dialog (and overlay, if <a href="#option-modal">modal</a>) should be appended to.</p>
71+
<div class="warning"><strong>Note:</strong> The <code>appendTo</code> option should not be changed while the dialog is open.</div>
72+
</desc>
7073
</option>
7174
<option name="autoOpen" default="true" example-value="false">
7275
<desc>If set to <code>true</code>, the dialog will automatically open upon initialization. If <code>false</code>, the dialog will stay hidden until the <a href="#method-open"><code>open()</code></a> method is called.</desc>

0 commit comments

Comments
 (0)