mirror of https://github.com/twbs/bootstrap.git
				
				
				
			Dropdown: Remove static method used once
This commit is contained in:
		
							parent
							
								
									8b308b76f0
								
							
						
					
					
						commit
						137b324930
					
				|  | @ -132,7 +132,7 @@ class Dropdown extends BaseComponent { | ||||||
|       return |       return | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     const parent = Dropdown.getParentFromElement(this._element) |     const parent = getElementFromSelector(this._element) || this._element.parentNode | ||||||
|     // Totally disable Popper for Dropdowns in Navbar
 |     // Totally disable Popper for Dropdowns in Navbar
 | ||||||
|     if (this._inNavbar) { |     if (this._inNavbar) { | ||||||
|       Manipulator.setDataAttribute(this._menu, 'popper', 'none') |       Manipulator.setDataAttribute(this._menu, 'popper', 'none') | ||||||
|  | @ -408,10 +408,6 @@ class Dropdown extends BaseComponent { | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   static getParentFromElement(element) { |  | ||||||
|     return getElementFromSelector(element) || element.parentNode |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
|   static dataApiKeydownHandler(event) { |   static dataApiKeydownHandler(event) { | ||||||
|     // If not input/textarea:
 |     // If not input/textarea:
 | ||||||
|     //  - And not a key in REGEXP_KEYDOWN => not a dropdown command
 |     //  - And not a key in REGEXP_KEYDOWN => not a dropdown command
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue