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:
parent
d105439235
commit
c14fc989df
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user