2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03:00

npm build

This commit is contained in:
Mark Otto
2017-07-04 11:55:16 -07:00
parent a662f85398
commit 2a745e54de
7 changed files with 85 additions and 97 deletions
+3 -9
View File
@@ -231,8 +231,6 @@ var Dropdown = function ($) {
};
Dropdown.prototype._getPopperConfig = function _getPopperConfig() {
var _this2 = this;
var popperConfig = {
placement: this._getPlacement(),
modifiers: {
@@ -245,14 +243,10 @@ var Dropdown = function ($) {
}
};
// Disable Popper.js for Dropdown in Navbar
if (this._inNavbar) {
popperConfig.modifiers.AfterApplyStyle = {
enabled: true,
order: 901, // ApplyStyle order + 1
fn: function fn() {
// reset Popper styles
$(_this2._menu).attr('style', '');
}
popperConfig.modifiers.applyStyle = {
enabled: !this._inNavbar
};
}
return popperConfig;
+1 -1
View File
File diff suppressed because one or more lines are too long