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
path: root/js
diff options
context:
space:
mode:
authorGeoSot <geo.sotis@gmail.com>2021-10-10 14:59:12 +0300
committerXhmikosR <xhmikosr@gmail.com>2021-12-01 18:10:39 +0300
commit137b3249304b9ffeb76c72b7094ae7f170993016 (patch)
treeff7e192a03d8fcd32f7d1ed213ffbbf89561b12b /js
parent8b308b76f0ec826908ebe8b106688378f5d616a5 (diff)
Dropdown: Remove static method used once
Diffstat (limited to 'js')
-rw-r--r--js/src/dropdown.js6
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