mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-09 15:16:51 +02:00
Some .navbar .dropdown-menu optimisation (#22776)
This commit is contained in:
@@ -251,21 +251,6 @@ const Dropdown = (($) => {
|
||||
return $(this._element).closest('.navbar').length > 0
|
||||
}
|
||||
|
||||
_navbarPositioning() {
|
||||
const $parentNavbar = $(this._element).closest('.navbar')
|
||||
if ($(this._menu).hasClass(ClassName.MENURIGHT)) {
|
||||
if (!$parentNavbar.hasClass('navbar-expand')) {
|
||||
return {
|
||||
position: 'static',
|
||||
transform: '',
|
||||
float: 'none'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return {}
|
||||
}
|
||||
|
||||
_getPopperConfig() {
|
||||
const popperConfig = {
|
||||
placement : this._getPlacement(),
|
||||
|
Reference in New Issue
Block a user