mirror of https://github.com/twbs/bootstrap.git
				
				
				
			Dropdown — Drop `flip` option (#33198)
This commit is contained in:
		
							parent
							
								
									977c366cbe
								
							
						
					
					
						commit
						b9e51dc3c4
					
				|  | @ -73,7 +73,6 @@ const PLACEMENT_LEFT = isRTL() ? 'right-start' : 'left-start' | ||||||
| 
 | 
 | ||||||
| const Default = { | const Default = { | ||||||
|   offset: [0, 2], |   offset: [0, 2], | ||||||
|   flip: true, |  | ||||||
|   boundary: 'clippingParents', |   boundary: 'clippingParents', | ||||||
|   reference: 'toggle', |   reference: 'toggle', | ||||||
|   display: 'dynamic', |   display: 'dynamic', | ||||||
|  | @ -82,7 +81,6 @@ const Default = { | ||||||
| 
 | 
 | ||||||
| const DefaultType = { | const DefaultType = { | ||||||
|   offset: '(array|string|function)', |   offset: '(array|string|function)', | ||||||
|   flip: 'boolean', |  | ||||||
|   boundary: '(string|element)', |   boundary: '(string|element)', | ||||||
|   reference: '(string|element|object)', |   reference: '(string|element|object)', | ||||||
|   display: 'string', |   display: 'string', | ||||||
|  | @ -328,7 +326,6 @@ class Dropdown extends BaseComponent { | ||||||
|       modifiers: [{ |       modifiers: [{ | ||||||
|         name: 'preventOverflow', |         name: 'preventOverflow', | ||||||
|         options: { |         options: { | ||||||
|           altBoundary: this._config.flip, |  | ||||||
|           boundary: this._config.boundary |           boundary: this._config.boundary | ||||||
|         } |         } | ||||||
|       }, |       }, | ||||||
|  |  | ||||||
|  | @ -979,12 +979,6 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap | ||||||
|     </tr> |     </tr> | ||||||
|   </thead> |   </thead> | ||||||
|   <tbody> |   <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> |     <tr> | ||||||
|       <td><code>boundary</code></td> |       <td><code>boundary</code></td> | ||||||
|       <td>string | element</td> |       <td>string | element</td> | ||||||
|  |  | ||||||
|  | @ -18,6 +18,8 @@ toc: true | ||||||
|   var dropdown = new bootstrap.Dropdown('[data-bs-toggle="dropdown"]') |   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 | ### Utilities | ||||||
| 
 | 
 | ||||||
| - Dropped the `0` entry in `$border-widths` map to remove the duplicated `.border-0` class. | - Dropped the `0` entry in `$border-widths` map to remove the duplicated `.border-0` class. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue