2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

Improvement: harmonize usage of constants (#30285)

This commit is contained in:
Sparks
2020-03-09 16:26:29 +01:00
committed by GitHub
parent 7d8c7c4ba8
commit c47547cd09
4 changed files with 11 additions and 8 deletions
+2 -1
View File
@@ -57,6 +57,7 @@ const ClassName = {
DROPRIGHT: 'dropright',
DROPLEFT: 'dropleft',
MENURIGHT: 'dropdown-menu-right',
NAVBAR: 'navbar',
POSITION_STATIC: 'position-static'
}
@@ -307,7 +308,7 @@ class Dropdown {
}
_detectNavbar() {
return Boolean(SelectorEngine.closest(this._element, '.navbar'))
return Boolean(SelectorEngine.closest(this._element, `.${ClassName.NAVBAR}`))
}
_getOffset() {