jPushMenu icon indicating copy to clipboard operation
jPushMenu copied to clipboard

close() event doesn't use the configured classes

Open MrJamesEllis opened this issue 11 years ago • 1 comments

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

MrJamesEllis avatar Jan 30 '14 23:01 MrJamesEllis

With the last pull request this is fixed

juliangut avatar Oct 26 '14 11:10 juliangut