1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-26 06:44:35 +02:00

fix(review)

This commit is contained in:
louismaximepiton
2023-06-28 09:25:12 +02:00
parent 00579afa48
commit 1de60f3376
2 changed files with 4 additions and 1 deletions

View File

@@ -71,6 +71,7 @@ const PLACEMENT_BOTTOMCENTER = 'bottom'
const Default = {
autoClose: true,
boundary: 'clippingParents',
cycling: true,
display: 'dynamic',
offset: [0, 2],
popperConfig: null,
@@ -80,6 +81,7 @@ const Default = {
const DefaultType = {
autoClose: '(boolean|string)',
boundary: '(string|element)',
cycling: 'boolean',
display: 'string',
offset: '(array|string|function)',
popperConfig: '(null|object|function)',
@@ -332,7 +334,7 @@ class Dropdown extends BaseComponent {
}
// Allow cycling with up and down arrows
getNextActiveElement(items, target, key === ARROW_DOWN_KEY, true).focus()
getNextActiveElement(items, target, key === ARROW_DOWN_KEY, this._config.cycling || !items.includes(target)).focus()
}
// Static