Skip to content

Commit 81f2535

Browse files
committed
fix(sidebar): Selector.NAV_LINK_QUERIED must be nav-link-queried
1 parent 9408b56 commit 81f2535

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
## v2.1.14
1+
## v2.1.15
2+
- fix(sidebar): Selector.NAV_LINK_QUERIED must be "nav-link-queried" #83 - thanks @expressiveco @gtruini
3+
24

5+
## v2.1.14
36
###### Dependencies update:
7+
- chore(deps): bump lodash from 4.17.11 to 4.17.14
48
- update `rollup` to `^1.15.4`
59
- update `rollup-plugin-node-resolve` to `^5.0.2`
610

js/src/sidebar.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const Sidebar = (($) => {
3232
ACTIVE : 'active',
3333
BRAND_MINIMIZED : 'brand-minimized',
3434
NAV_DROPDOWN_TOGGLE : 'nav-dropdown-toggle',
35+
NAV_LINK_QUERIED : 'nav-link-queried',
3536
OPEN : 'open',
3637
SIDEBAR_FIXED : 'sidebar-fixed',
3738
SIDEBAR_MINIMIZED : 'sidebar-minimized',
@@ -159,7 +160,7 @@ const Sidebar = (($) => {
159160
let link = value
160161
let cUrl
161162

162-
if (link.classList.contains(Selector.NAV_LINK_QUERIED)) {
163+
if (link.classList.contains(ClassName.NAV_LINK_QUERIED)) {
163164
cUrl = String(window.location)
164165
} else {
165166
cUrl = String(window.location).split('?')[0]

0 commit comments

Comments
 (0)