1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-29 23:09:05 +02:00
This commit is contained in:
Mark Otto
2018-02-19 14:50:56 -08:00
parent 33f3ba33c2
commit 6a52ebfe1a
15 changed files with 218 additions and 31 deletions

16
js/dist/dropdown.js vendored
View File

@@ -76,13 +76,15 @@ var Dropdown = function ($) {
offset: 0,
flip: true,
boundary: 'scrollParent',
reference: 'toggle'
reference: 'toggle',
display: 'dynamic'
};
var DefaultType = {
offset: '(number|string|function)',
flip: 'boolean',
boundary: '(string|element)',
reference: '(string|element)'
reference: '(string|element)',
display: 'string'
/**
* ------------------------------------------------------------------------
* Class Definition
@@ -279,8 +281,16 @@ var Dropdown = function ($) {
preventOverflow: {
boundariesElement: this._config.boundary
}
}
} // Disable Popper.js if we have a static display
};
if (this._config.display === 'static') {
popperConfig.modifiers.applyStyle = {
enabled: false
};
}
return popperConfig;
}; // Static