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
1 changed files with 1 additions and 2 deletions

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()
}