Skip to content

Commit c805aec

Browse files
committed
fix popover arrow by selecting the first element child
1 parent 7694a5a commit c805aec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

js/src/tooltip.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ const ClassName = {
111111
}
112112

113113
const Selector = {
114-
TOOLTIP_INNER: '.tooltip-inner',
115-
TOOLTIP_ARROW: '.tooltip-arrow'
114+
TOOLTIP_INNER: '.tooltip-inner'
116115
}
117116

118117
const Trigger = {
@@ -310,7 +309,7 @@ class Tooltip {
310309
behavior: this.config.fallbackPlacement
311310
},
312311
arrow: {
313-
element: Selector.TOOLTIP_ARROW
312+
element: `.${this.constructor.NAME}-arrow`
314313
},
315314
preventOverflow: {
316315
boundariesElement: this.config.boundary

0 commit comments

Comments
 (0)