Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoSot <geo.sotis@gmail.com>2022-01-31 01:07:05 +0300
committerXhmikosR <xhmikosr@gmail.com>2022-02-01 09:58:46 +0300
commitc14fc989df8dc107b0ba86c241487b192841d753 (patch)
tree661542c4dabd6e5862f5aa7d00b39921dd93ede3 /js/src/dropdown.js
parentd10543923531d9a2bf0e122439d5b1a2ae4e3d13 (diff)
Dropdown: dropdown doesn't document `data-bs-target` option & `parentNode` is ALWAYS the wrapper for toggle & menu
Diffstat (limited to 'js/src/dropdown.js')
-rw-r--r--js/src/dropdown.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index 779fe8f193..ed3feceb86 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -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()
}