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:
+2
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user