0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Dropdown: dropdown doesn't document data-bs-target option & parentNode is ALWAYS the wrapper for toggle & menu

This commit is contained in:
GeoSot 2022-01-31 00:07:05 +02:00 committed by XhmikosR
parent d105439235
commit c14fc989df

View File

@ -9,7 +9,6 @@ import * as Popper from '@popperjs/core'
import {
defineJQueryPlugin,
getElement,
getElementFromSelector,
getNextActiveElement,
isDisabled,
isElement,
@ -90,7 +89,7 @@ class Dropdown extends BaseComponent {
super(element, config)
this._popper = null
this._parent = getElementFromSelector(this._element) || this._element.parentNode // dropdown wrapper
this._parent = this._element.parentNode // dropdown wrapper
this._menu = SelectorEngine.findOne(SELECTOR_MENU, this._parent)
this._inNavbar = this._detectNavbar()
}