mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-08 22:56:46 +02:00
use Tether addTargetClasses: false option instead of manually removing them
This commit is contained in:
6827
dist/js/bootstrap.js
6827
dist/js/bootstrap.js
File diff suppressed because it is too large
Load Diff
2
dist/js/bootstrap.min.js
vendored
2
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
9
dist/js/umd/tooltip.js
vendored
9
dist/js/umd/tooltip.js
vendored
@@ -265,7 +265,8 @@
|
|||||||
classes: TetherClass,
|
classes: TetherClass,
|
||||||
classPrefix: CLASS_PREFIX,
|
classPrefix: CLASS_PREFIX,
|
||||||
offset: this.config.offset,
|
offset: this.config.offset,
|
||||||
constraints: this.config.constraints
|
constraints: this.config.constraints,
|
||||||
|
addTargetClasses: false
|
||||||
});
|
});
|
||||||
|
|
||||||
_Util['default'].reflow(tip);
|
_Util['default'].reflow(tip);
|
||||||
@@ -372,12 +373,6 @@
|
|||||||
value: function cleanupTether() {
|
value: function cleanupTether() {
|
||||||
if (this._tether) {
|
if (this._tether) {
|
||||||
this._tether.destroy();
|
this._tether.destroy();
|
||||||
|
|
||||||
// clean up after tether's junk classes
|
|
||||||
// remove after they fix issue
|
|
||||||
// (https://github.com/HubSpot/tether/issues/36)
|
|
||||||
$(this.element).removeClass(this._removeTetherClasses);
|
|
||||||
$(this.tip).removeClass(this._removeTetherClasses);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2971,7 +2971,8 @@ var Tooltip = (function ($) {
|
|||||||
classes: TetherClass,
|
classes: TetherClass,
|
||||||
classPrefix: CLASS_PREFIX,
|
classPrefix: CLASS_PREFIX,
|
||||||
offset: this.config.offset,
|
offset: this.config.offset,
|
||||||
constraints: this.config.constraints
|
constraints: this.config.constraints,
|
||||||
|
addTargetClasses: false
|
||||||
});
|
});
|
||||||
|
|
||||||
Util.reflow(tip);
|
Util.reflow(tip);
|
||||||
@@ -3078,12 +3079,6 @@ var Tooltip = (function ($) {
|
|||||||
value: function cleanupTether() {
|
value: function cleanupTether() {
|
||||||
if (this._tether) {
|
if (this._tether) {
|
||||||
this._tether.destroy();
|
this._tether.destroy();
|
||||||
|
|
||||||
// clean up after tether's junk classes
|
|
||||||
// remove after they fix issue
|
|
||||||
// (https://github.com/HubSpot/tether/issues/36)
|
|
||||||
$(this.element).removeClass(this._removeTetherClasses);
|
|
||||||
$(this.tip).removeClass(this._removeTetherClasses);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
docs/dist/js/bootstrap.min.js
vendored
2
docs/dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
9
docs/dist/js/umd/tooltip.js
vendored
9
docs/dist/js/umd/tooltip.js
vendored
@@ -265,7 +265,8 @@
|
|||||||
classes: TetherClass,
|
classes: TetherClass,
|
||||||
classPrefix: CLASS_PREFIX,
|
classPrefix: CLASS_PREFIX,
|
||||||
offset: this.config.offset,
|
offset: this.config.offset,
|
||||||
constraints: this.config.constraints
|
constraints: this.config.constraints,
|
||||||
|
addTargetClasses: false
|
||||||
});
|
});
|
||||||
|
|
||||||
_Util['default'].reflow(tip);
|
_Util['default'].reflow(tip);
|
||||||
@@ -372,12 +373,6 @@
|
|||||||
value: function cleanupTether() {
|
value: function cleanupTether() {
|
||||||
if (this._tether) {
|
if (this._tether) {
|
||||||
this._tether.destroy();
|
this._tether.destroy();
|
||||||
|
|
||||||
// clean up after tether's junk classes
|
|
||||||
// remove after they fix issue
|
|
||||||
// (https://github.com/HubSpot/tether/issues/36)
|
|
||||||
$(this.element).removeClass(this._removeTetherClasses);
|
|
||||||
$(this.tip).removeClass(this._removeTetherClasses);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -270,12 +270,13 @@ const Tooltip = (($) => {
|
|||||||
|
|
||||||
this._tether = new Tether({
|
this._tether = new Tether({
|
||||||
attachment,
|
attachment,
|
||||||
element : tip,
|
element : tip,
|
||||||
target : this.element,
|
target : this.element,
|
||||||
classes : TetherClass,
|
classes : TetherClass,
|
||||||
classPrefix : CLASS_PREFIX,
|
classPrefix : CLASS_PREFIX,
|
||||||
offset : this.config.offset,
|
offset : this.config.offset,
|
||||||
constraints : this.config.constraints
|
constraints : this.config.constraints,
|
||||||
|
addTargetClasses: false
|
||||||
})
|
})
|
||||||
|
|
||||||
Util.reflow(tip)
|
Util.reflow(tip)
|
||||||
@@ -384,12 +385,6 @@ const Tooltip = (($) => {
|
|||||||
cleanupTether() {
|
cleanupTether() {
|
||||||
if (this._tether) {
|
if (this._tether) {
|
||||||
this._tether.destroy()
|
this._tether.destroy()
|
||||||
|
|
||||||
// clean up after tether's junk classes
|
|
||||||
// remove after they fix issue
|
|
||||||
// (https://github.com/HubSpot/tether/issues/36)
|
|
||||||
$(this.element).removeClass(this._removeTetherClasses)
|
|
||||||
$(this.tip).removeClass(this._removeTetherClasses)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user