1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 21:09:06 +02:00

fix popover arrow by selecting the first element child

This commit is contained in:
Johann-S
2019-05-12 09:55:29 +02:00
parent 7694a5a70a
commit c805aec770

View File

@@ -111,8 +111,7 @@ const ClassName = {
} }
const Selector = { const Selector = {
TOOLTIP_INNER: '.tooltip-inner', TOOLTIP_INNER: '.tooltip-inner'
TOOLTIP_ARROW: '.tooltip-arrow'
} }
const Trigger = { const Trigger = {
@@ -310,7 +309,7 @@ class Tooltip {
behavior: this.config.fallbackPlacement behavior: this.config.fallbackPlacement
}, },
arrow: { arrow: {
element: Selector.TOOLTIP_ARROW element: `.${this.constructor.NAME}-arrow`
}, },
preventOverflow: { preventOverflow: {
boundariesElement: this.config.boundary boundariesElement: this.config.boundary