jPushMenu
jPushMenu copied to clipboard
close() event doesn't use the configured classes
The options have this as the default:
activeClass : 'menu-active',
... but the close event hard codes the activeClass as 'active'
$('.jPushMenuBtn,body,.cbp-spmenu').removeClass('disabled active cbp-spmenu-open cbp-spmenu-push-toleft cbp-spmenu-push-toright');
This means that on clickoutside, the toggle button doesn't lose it's activeClass. The workaround is to set an activeClass as 'active' but the solution would be to replace 'active' in removeClass with the option value of activeClass
With the last pull request this is fixed