Closed coreystinson2 closed 6 years ago
I believe there to be a typo in mdb.js file when using sideNav with closeOnClick: true.
mdb.js
closeOnClick: true
17923 if (this.options.closeOnClick === true) { 17924 this.menu_id.on("click", "a:not(.collapsible-header)", function () { 17925 sn.removeMenu(); 17926 }); 17927 }
sn is not referenced anywhere and should be replaced with _this as referenced elsewhere within the component.
sn
_this
17923 if (this.options.closeOnClick === true) { 17924 this.menu_id.on("click", "a:not(.collapsible-header)", function () { 17925 _this.removeMenu(); 17926 }); 17927 }
Steps to reproduce Copy the html provided under basic usage: https://mdbootstrap.com/javascript/sidenav/
Initialize sideNav with following option
$('.button-collapse').sideNav({closeOnClick: true});
What's your version of MDB?
closed due to no response
I believe there to be a typo in
mdb.js
file when using sideNav withcloseOnClick: true
.sn
is not referenced anywhere and should be replaced with_this
as referenced elsewhere within the component.Steps to reproduce Copy the html provided under basic usage: https://mdbootstrap.com/javascript/sidenav/
Initialize sideNav with following option