aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2019-05-12 09:55:29 +0200
committerJohann-S <[email protected]>2019-05-14 15:28:43 +0200
commitc805aec770d7da67e655cc40e801ca1cbe5a8689 (patch)
tree532edec76497d1c36f8291368ad80e52a1b0e287 /js
parent7694a5a70a8c63b05845ac933fbea3ec932eb7aa (diff)
downloadbootstrap-c805aec770d7da67e655cc40e801ca1cbe5a8689.tar.xz
bootstrap-c805aec770d7da67e655cc40e801ca1cbe5a8689.zip
fix popover arrow by selecting the first element child
Diffstat (limited to 'js')
-rw-r--r--js/src/tooltip.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index 8a832a973..7b792bc71 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -111,8 +111,7 @@ const ClassName = {
}
const Selector = {
- TOOLTIP_INNER: '.tooltip-inner',
- TOOLTIP_ARROW: '.tooltip-arrow'
+ TOOLTIP_INNER: '.tooltip-inner'
}
const Trigger = {
@@ -310,7 +309,7 @@ class Tooltip {
behavior: this.config.fallbackPlacement
},
arrow: {
- element: Selector.TOOLTIP_ARROW
+ element: `.${this.constructor.NAME}-arrow`
},
preventOverflow: {
boundariesElement: this.config.boundary