We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee0339b commit eb68eefCopy full SHA for eb68eef
js/src/sidebar.js
@@ -46,6 +46,7 @@ const Sidebar = (($) => {
46
BRAND_MINIMIZER : '.brand-minimizer',
47
NAV_DROPDOWN_TOGGLE : '.nav-dropdown-toggle',
48
NAV_DROPDOWN_ITEMS : '.nav-dropdown-items',
49
+ NAV_ITEM : '.nav-item',
50
NAV_LINK : '.nav-link',
51
NAVIGATION_CONTAINER : '.sidebar-nav',
52
NAVIGATION : '.sidebar-nav > .nav',
@@ -165,6 +166,10 @@ const Sidebar = (($) => {
165
166
const toggle = event.currentTarget.dataset.toggle
167
toggleClasses(toggle, ShowClassNames)
168
})
169
+
170
+ $(`${Selector.NAVIGATION} > ${Selector.NAV_ITEM} ${Selector.NAV_LINK}:not(${Selector.NAV_DROPDOWN_TOGGLE})`).on(Event.CLICK, () => {
171
+ document.body.classList.remove('sidebar-show')
172
+ })
173
}
174
175
// Static
0 commit comments