I just implemented this plug-in and ran into an issue closing the menu when I'm using the push setup. I took a look at the add-on code and it looks like you need something like the following in the esp-menu.js
file where you inserted a comment for cleanup:
updateBodyClass() {
let _bodyClass = this.get('bodyClass');
if ( this.get('pushMenu') && !$('body').hasClass(_bodyClass) ) {
$('body').addClass(_bodyClass);
} else {
$('body').removeClass(_bodyClass);
}
},
That seems to solve the problem for me however I didn't want to submit a PR in case this doesn't fit in with the bigger picture of what you're doing. Lemme know or feel free to update on your end.