mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-14 01:24:19 +02:00
Add fallback behaviour
This commit is contained in:
committed by
Mark Otto
parent
0f12f58711
commit
f132400865
@@ -298,6 +298,12 @@ class Dropdown extends BaseComponent {
|
|||||||
altBoundary: this._config.flip,
|
altBoundary: this._config.flip,
|
||||||
rootBoundary: this._config.boundary
|
rootBoundary: this._config.boundary
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'flip',
|
||||||
|
options: {
|
||||||
|
fallbackPlacements: ['top', 'right', 'bottom', 'left']
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -470,7 +470,8 @@ class Tooltip extends BaseComponent {
|
|||||||
const flipModifier = {
|
const flipModifier = {
|
||||||
name: 'flip',
|
name: 'flip',
|
||||||
options: {
|
options: {
|
||||||
altBoundary: true
|
altBoundary: true,
|
||||||
|
fallbackPlacements: ['top', 'right', 'bottom', 'left']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user