mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 06:44:35 +02:00
fix(review)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user