diff options
| author | Martijn Cuppens <[email protected]> | 2020-12-09 19:21:30 +0100 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2020-12-09 13:34:51 -0800 |
| commit | f132400865217ccc83dd31bb53bb8f584a1a6f2f (patch) | |
| tree | 1c4458753961fc08691a4226a3d4e4c24e1a6f02 /js/src | |
| parent | 0f12f5871155b01ab9480d2b3543428dbc6b50e9 (diff) | |
| download | bootstrap-f132400865217ccc83dd31bb53bb8f584a1a6f2f.tar.xz bootstrap-f132400865217ccc83dd31bb53bb8f584a1a6f2f.zip | |
Add fallback behaviour
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/dropdown.js | 6 | ||||
| -rw-r--r-- | js/src/tooltip.js | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js index 4720ed1ab..4d65008f8 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -298,6 +298,12 @@ class Dropdown extends BaseComponent { altBoundary: this._config.flip, rootBoundary: this._config.boundary } + }, + { + name: 'flip', + options: { + fallbackPlacements: ['top', 'right', 'bottom', 'left'] + } }] } diff --git a/js/src/tooltip.js b/js/src/tooltip.js index df0f0c19c..d348e0a0d 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -470,7 +470,8 @@ class Tooltip extends BaseComponent { const flipModifier = { name: 'flip', options: { - altBoundary: true + altBoundary: true, + fallbackPlacements: ['top', 'right', 'bottom', 'left'] } } |
