diff options
author | Johann-S <johann.servoire@gmail.com> | 2018-02-12 03:45:59 +0300 |
---|---|---|
committer | Mark Otto <markd.otto@gmail.com> | 2018-02-12 03:45:59 +0300 |
commit | 65ae622d4061efc5f62628d7d607358476f8f345 (patch) | |
tree | a134fac601079bcf0c88a3e8789f0b696f38620d /js/src/dropdown.js | |
parent | ba878eb542ab6c04786741569ba089d02e9bea46 (diff) |
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/dropdown.js')
-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 82deaa2205..b877017f2b 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 } |