Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2018-02-20 01:50:56 +0300
committerMark Otto <markdotto@gmail.com>2018-02-20 01:50:56 +0300
commit6a52ebfe1a7c7409d308d1c87c088b770a845e88 (patch)
tree882fd0237018aab42c5bfe300c519122da84a5dc /js/dist/dropdown.js
parent33f3ba33c208937a2aec30accddc6b7384442c6b (diff)
dist
Diffstat (limited to 'js/dist/dropdown.js')
-rw-r--r--js/dist/dropdown.js16
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