2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-18 12:39:41 +03:00

Add fallback behaviour

This commit is contained in:
Martijn Cuppens
2020-12-09 19:21:30 +01:00
committed by Mark Otto
parent 0f12f58711
commit f132400865
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -298,6 +298,12 @@ class Dropdown extends BaseComponent {
altBoundary: this._config.flip,
rootBoundary: this._config.boundary
}
},
{
name: 'flip',
options: {
fallbackPlacements: ['top', 'right', 'bottom', 'left']
}
}]
}
+2 -1
View File
@@ -470,7 +470,8 @@ class Tooltip extends BaseComponent {
const flipModifier = {
name: 'flip',
options: {
altBoundary: true
altBoundary: true,
fallbackPlacements: ['top', 'right', 'bottom', 'left']
}
}