mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-26 05:19:15 +02:00
fix popover arrow by selecting the first element child
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user