From c14fc989df8dc107b0ba86c241487b192841d753 Mon Sep 17 00:00:00 2001 From: GeoSot Date: Mon, 31 Jan 2022 00:07:05 +0200 Subject: [PATCH] Dropdown: dropdown doesn't document `data-bs-target` option & `parentNode` is ALWAYS the wrapper for toggle & menu --- js/src/dropdown.js | 3 +-- 1 file changed, 1 insertion(+), 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() }