diff options
| author | Johann-S <[email protected]> | 2017-04-08 21:13:15 +0200 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2017-05-14 11:41:19 +0200 |
| commit | d8996a7e0a90ad2a00151c5e14bae6a37bf8e186 (patch) | |
| tree | b16caa5c1a34c4394cfeca9b7c20e5e327dd446a /js/src | |
| parent | b40b1bc396adb80944b887f72d0ae616277c852d (diff) | |
| download | bootstrap-d8996a7e0a90ad2a00151c5e14bae6a37bf8e186.tar.xz bootstrap-d8996a7e0a90ad2a00151c5e14bae6a37bf8e186.zip | |
Fix arrow for tooltip and popover
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/tooltip.js | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js index fb4ff131c..c380f8675 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -285,11 +285,8 @@ const Tooltip = (($) => { this._popper = new Popper(this.element, tip, { placement : attachment, - arrowElement : '.arrow', - modifiers : { - offset : { - offset : this.config.offset - } + offsets : { + popper : this.config.offset } }) @@ -632,13 +629,13 @@ const Tooltip = (($) => { return config } - _cleanTipClass() { - const $tip = $(this.getTipElement()) - const tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX) - if (tabClass !== null && tabClass.length > 0) { - $tip.removeClass(tabClass.join('')) + _cleanTipClass() { + const $tip = $(this.getTipElement()) + const tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX) + if (tabClass !== null && tabClass.length > 0) { + $tip.removeClass(tabClass.join('')) + } } - } // static |
