Skip to content

Commit

Permalink
Add fallback behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens authored and mdo committed Dec 9, 2020
1 parent 0f12f58 commit f132400
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions js/src/dropdown.js
Expand Up @@ -298,6 +298,12 @@ class Dropdown extends BaseComponent {
altBoundary: this._config.flip,
rootBoundary: this._config.boundary
}
},
{
name: 'flip',
options: {
fallbackPlacements: ['top', 'right', 'bottom', 'left']
}
}]
}

Expand Down
3 changes: 2 additions & 1 deletion js/src/tooltip.js
Expand Up @@ -470,7 +470,8 @@ class Tooltip extends BaseComponent {
const flipModifier = {
name: 'flip',
options: {
altBoundary: true
altBoundary: true,
fallbackPlacements: ['top', 'right', 'bottom', 'left']
}
}

Expand Down

0 comments on commit f132400

Please sign in to comment.