diff options
| author | Johann-S <[email protected]> | 2018-02-12 01:45:59 +0100 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2018-02-11 16:45:59 -0800 |
| commit | 65ae622d4061efc5f62628d7d607358476f8f345 (patch) | |
| tree | a134fac601079bcf0c88a3e8789f0b696f38620d /js/src | |
| parent | ba878eb542ab6c04786741569ba089d02e9bea46 (diff) | |
| download | bootstrap-65ae622d4061efc5f62628d7d607358476f8f345.tar.xz bootstrap-65ae622d4061efc5f62628d7d607358476f8f345.zip | |
Dropdown - Allow to disable Popper.js style (#24092)
* Dropdown - Allow to disable Popper.js style
* Update dropdown.js
* Update dropdown.html
* copy changes
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/dropdown.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js index 82deaa220..b877017f2 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -75,14 +75,16 @@ const Dropdown = (($) => { offset : 0, flip : true, boundary : 'scrollParent', - reference : 'toggle' + reference : 'toggle', + display : 'dynamic' } const DefaultType = { offset : '(number|string|function)', flip : 'boolean', boundary : '(string|element)', - reference : '(string|element)' + reference : '(string|element)', + display : 'string' } /** @@ -295,6 +297,12 @@ const Dropdown = (($) => { } } + // Disable Popper.js if we have a static display + if (this._config.display === 'static') { + popperConfig.modifiers.applyStyle = { + enabled: false + } + } return popperConfig } |
