From fc8b85b62670b8396cac7fb821c025c58fa77a78 Mon Sep 17 00:00:00 2001 From: Johann-S Date: Wed, 19 Apr 2017 10:59:10 +0200 Subject: Fix some css for the arrow of Popover/Tooltip + update documentation --- js/src/tooltip.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/src') diff --git a/js/src/tooltip.js b/js/src/tooltip.js index b446d9bcc..a8c0ab6f1 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -289,7 +289,9 @@ const Tooltip = (($) => { } }, onCreate : (data) => { - this._handlePopperPlacementChange(data) + if (data.originalPlacement !== data.placement) { + this._handlePopperPlacementChange(data) + } }, onUpdate : (data) => { this._handlePopperPlacementChange(data) @@ -644,10 +646,8 @@ const Tooltip = (($) => { } _handlePopperPlacementChange(data) { - if (data.originalPlacement !== data.placement) { this._cleanTipClass() this.addAttachmentClass(this._getAttachment(data.placement)) - } } // static -- cgit v1.2.3