diff options
author | GeoSot <geo.sotis@gmail.com> | 2021-10-10 14:59:12 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2021-12-01 18:10:39 +0300 |
commit | 137b3249304b9ffeb76c72b7094ae7f170993016 (patch) | |
tree | ff7e192a03d8fcd32f7d1ed213ffbbf89561b12b /js | |
parent | 8b308b76f0ec826908ebe8b106688378f5d616a5 (diff) |
Dropdown: Remove static method used once
Diffstat (limited to 'js')
-rw-r--r-- | js/src/dropdown.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js index 6129707e26..06f69af7be 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -132,7 +132,7 @@ class Dropdown extends BaseComponent { return } - const parent = Dropdown.getParentFromElement(this._element) + const parent = getElementFromSelector(this._element) || this._element.parentNode // Totally disable Popper for Dropdowns in Navbar if (this._inNavbar) { Manipulator.setDataAttribute(this._menu, 'popper', 'none') @@ -408,10 +408,6 @@ class Dropdown extends BaseComponent { } } - static getParentFromElement(element) { - return getElementFromSelector(element) || element.parentNode - } - static dataApiKeydownHandler(event) { // If not input/textarea: // - And not a key in REGEXP_KEYDOWN => not a dropdown command |