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>2017-10-30 22:48:13 +0300
committerMark Otto <markdotto@gmail.com>2017-10-30 22:48:13 +0300
commit2fec9f13cd044cb46060ebecfb10d410c3d97c19 (patch)
tree111d913ba180d51db16d0cc780668ee30685a7e4 /dist/js/bootstrap.bundle.js
parent10773f45d430e1d9629afac5c27adcf5a29553b9 (diff)
dist
Diffstat (limited to 'dist/js/bootstrap.bundle.js')
-rw-r--r--dist/js/bootstrap.bundle.js45
1 files changed, 20 insertions, 25 deletions
diff --git a/dist/js/bootstrap.bundle.js b/dist/js/bootstrap.bundle.js
index 99e2cf11a9..23d5e97d3e 100644
--- a/dist/js/bootstrap.bundle.js
+++ b/dist/js/bootstrap.bundle.js
@@ -3932,30 +3932,33 @@ var Dropdown = function ($$$1) {
if (showEvent.isDefaultPrevented()) {
return;
- }
- /**
- * Check for Popper dependency
- * Popper - https://popper.js.org
- */
+ } // Disable totally Popper.js for Dropdown in Navbar
- if (typeof Popper === 'undefined') {
- throw new Error('Bootstrap dropdown require Popper.js (https://popper.js.org)');
- }
+ if (!this._inNavbar) {
+ /**
+ * Check for Popper dependency
+ * Popper - https://popper.js.org
+ */
+ if (typeof Popper === 'undefined') {
+ throw new Error('Bootstrap dropdown require Popper.js (https://popper.js.org)');
+ }
- var element = this._element; // for dropup with alignment we use the parent as popper container
+ var element = this._element; // for dropup with alignment we use the parent as popper container
- if ($$$1(parent).hasClass(ClassName.DROPUP)) {
- if ($$$1(this._menu).hasClass(ClassName.MENULEFT) || $$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
- element = parent;
+ if ($$$1(parent).hasClass(ClassName.DROPUP)) {
+ if ($$$1(this._menu).hasClass(ClassName.MENULEFT) || $$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
+ element = parent;
+ }
}
- }
- this._popper = new Popper(element, this._menu, this._getPopperConfig()); // if this is a touch-enabled device we add extra
+ this._popper = new Popper(element, this._menu, this._getPopperConfig());
+ } // if this is a touch-enabled device we add extra
// empty mouseover listeners to the body's immediate children;
// only needed because of broken event delegation on iOS
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
+
if ('ontouchstart' in document.documentElement && !$$$1(parent).closest(Selector.NAVBAR_NAV).length) {
$$$1('body').children().on('mouseover', null, $$$1.noop);
}
@@ -3976,9 +3979,9 @@ var Dropdown = function ($$$1) {
if (this._popper !== null) {
this._popper.destroy();
- }
- this._popper = null;
+ this._popper = null;
+ }
};
_proto.update = function update() {
@@ -4063,16 +4066,8 @@ var Dropdown = function ($$$1) {
flip: {
enabled: this._config.flip
}
- } // Disable Popper.js for Dropdown in Navbar
-
+ }
};
-
- if (this._inNavbar) {
- popperConfig.modifiers.applyStyle = {
- enabled: !this._inNavbar
- };
- }
-
return popperConfig;
}; // static