File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ const Sidebar = (($) => {
46
46
BRAND_MINIMIZER : '.brand-minimizer' ,
47
47
NAV_DROPDOWN_TOGGLE : '.nav-dropdown-toggle' ,
48
48
NAV_DROPDOWN_ITEMS : '.nav-dropdown-items' ,
49
+ NAV_ITEM : '.nav-item' ,
49
50
NAV_LINK : '.nav-link' ,
50
51
NAVIGATION_CONTAINER : '.sidebar-nav' ,
51
52
NAVIGATION : '.sidebar-nav > .nav' ,
@@ -165,6 +166,11 @@ const Sidebar = (($) => {
165
166
const toggle = event . currentTarget . dataset . toggle
166
167
toggleClasses ( toggle , ShowClassNames )
167
168
} )
169
+
170
+ $ ( `${ Selector . NAVIGATION } > ${ Selector . NAV_ITEM } ${ Selector . NAV_LINK } :not(${ Selector . NAV_DROPDOWN_TOGGLE } )` ) . on ( Event . CLICK , ( event ) => {
171
+ event . preventDefault ( )
172
+ document . body . classList . remove ( 'sidebar-show' )
173
+ } )
168
174
}
169
175
170
176
// Static
You can’t perform that action at this time.
0 commit comments