mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-09 23:26:40 +02:00
Fix some css for the arrow of Popover/Tooltip + update documentation
This commit is contained in:
@@ -289,7 +289,9 @@ const Tooltip = (($) => {
|
||||
}
|
||||
},
|
||||
onCreate : (data) => {
|
||||
this._handlePopperPlacementChange(data)
|
||||
if (data.originalPlacement !== data.placement) {
|
||||
this._handlePopperPlacementChange(data)
|
||||
}
|
||||
},
|
||||
onUpdate : (data) => {
|
||||
this._handlePopperPlacementChange(data)
|
||||
@@ -644,10 +646,8 @@ const Tooltip = (($) => {
|
||||
}
|
||||
|
||||
_handlePopperPlacementChange(data) {
|
||||
if (data.originalPlacement !== data.placement) {
|
||||
this._cleanTipClass()
|
||||
this.addAttachmentClass(this._getAttachment(data.placement))
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
|
Reference in New Issue
Block a user