diff --git a/js/src/dropdown.js b/js/src/dropdown.js index 96094a3e65..a12a1cf459 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -74,7 +74,8 @@ const Default = { display: 'dynamic', offset: [0, 2], popperConfig: null, - reference: 'toggle' + reference: 'toggle', + strategy: 'absolute' } const DefaultType = { @@ -83,7 +84,8 @@ const DefaultType = { display: 'string', offset: '(array|string|function)', popperConfig: '(null|object|function)', - reference: '(string|element|object)' + reference: '(string|element|object)', + strategy: 'string' } /** @@ -306,7 +308,8 @@ class Dropdown extends BaseComponent { options: { offset: this._getOffset() } - }] + }], + strategy: this._config.strategy } // Disable Popper if we have a static display or Dropdown is in Navbar diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 097477f7a1..3e046fb665 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -70,6 +70,7 @@ const Default = { sanitize: true, sanitizeFn: null, selector: false, + strategy: 'absolute', template: '