diff options
author | Mark Otto <markdotto@gmail.com> | 2018-02-20 01:50:56 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2018-02-20 01:50:56 +0300 |
commit | 6a52ebfe1a7c7409d308d1c87c088b770a845e88 (patch) | |
tree | 882fd0237018aab42c5bfe300c519122da84a5dc /js/dist/dropdown.js | |
parent | 33f3ba33c208937a2aec30accddc6b7384442c6b (diff) |
dist
Diffstat (limited to 'js/dist/dropdown.js')
-rw-r--r-- | js/dist/dropdown.js | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/js/dist/dropdown.js b/js/dist/dropdown.js index ed1d52d7d1..3ca0ace83d 100644 --- a/js/dist/dropdown.js +++ b/js/dist/dropdown.js @@ -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 |