]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix arrow popover (#29115)
authorJohann-S <johann.servoire@gmail.com>
Wed, 24 Jul 2019 07:53:58 +0000 (09:53 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 24 Jul 2019 07:53:58 +0000 (10:53 +0300)
js/src/popover/popover.js

index c357a6e5260467f73a65c711b5707ea951588eb2..cf4b776499f588ad6d62a61ddf430a662c6d57d5 100644 (file)
@@ -105,10 +105,6 @@ class Popover extends Tooltip {
     return this.getTitle() || this._getContent()
   }
 
-  addAttachmentClass(attachment) {
-    this.getTipElement().classList.add(`${CLASS_PREFIX}-${attachment}`)
-  }
-
   setContent() {
     const tip = this.getTipElement()
 
@@ -125,6 +121,10 @@ class Popover extends Tooltip {
     tip.classList.remove(ClassName.SHOW)
   }
 
+  _addAttachmentClass(attachment) {
+    this.getTipElement().classList.add(`${CLASS_PREFIX}-${attachment}`)
+  }
+
   // Private
 
   _getContent() {