const Default = {
offset: [0, 2],
- flip: true,
boundary: 'clippingParents',
reference: 'toggle',
display: 'dynamic',
const DefaultType = {
offset: '(array|string|function)',
- flip: 'boolean',
boundary: '(string|element)',
reference: '(string|element|object)',
display: 'string',
modifiers: [{
name: 'preventOverflow',
options: {
- altBoundary: this._config.flip,
boundary: this._config.boundary
}
},
</tr>
</thead>
<tbody>
- <tr>
- <td><code>flip</code></td>
- <td>boolean</td>
- <td><code>true</code></td>
- <td>Allow Dropdown to flip in case of an overlapping on the reference element. For more information refer to Popper's <a href="https://popper.js.org/docs/v2/modifiers/flip/">flip docs</a>.</td>
- </tr>
<tr>
<td><code>boundary</code></td>
<td>string | element</td>
var dropdown = new bootstrap.Dropdown('[data-bs-toggle="dropdown"]')
```
+- Dropped `flip` option for dropdown plugin in favor of native popper configuration. You can now disable the flipping behavior by passing an empty array for [`fallbackPlacements`](https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements) option in [flip](https://popper.js.org/docs/v2/modifiers/flip/) modifier.
+
### Utilities
- Dropped the `0` entry in `$border-widths` map to remove the duplicated `.border-0` class.