1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-22 15:39:59 +00:00

Fix dropdown docs about autoclose and esc key.

This commit is contained in:
Florian Lacreuse 2022-02-03 10:43:11 +01:00 committed by GeoSot
parent a5483a8a96
commit 957c1dd6ea

View File

@ -1065,10 +1065,11 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
<p>Configure the auto close behavior of the dropdown:</p> <p>Configure the auto close behavior of the dropdown:</p>
<ul> <ul>
<li><code>true</code> - the dropdown will be closed by clicking outside or inside the dropdown menu.</li> <li><code>true</code> - the dropdown will be closed by clicking outside or inside the dropdown menu.</li>
<li><code>false</code> - the dropdown will be closed by clicking the toggle button and manually calling <code>hide</code> or <code>toggle</code> method. (Also will not be closed by pressing <kbd>esc</kbd> key)</li> <li><code>false</code> - the dropdown will be closed by clicking the toggle button and manually calling <code>hide</code> or <code>toggle</code> method.</li>
<li><code>'inside'</code> - the dropdown will be closed (only) by clicking inside the dropdown menu.</li> <li><code>'inside'</code> - the dropdown will be closed (only) by clicking inside the dropdown menu.</li>
<li><code>'outside'</code> - the dropdown will be closed (only) by clicking outside the dropdown menu.</li> <li><code>'outside'</code> - the dropdown will be closed (only) by clicking outside the dropdown menu.</li>
</ul> </ul>
<p>The dropdown can always be closed with the <kbd>ESC</kbd> key.</p>
</td> </td>
</tr> </tr>
<tr> <tr>