Open knownasilya opened 3 years ago
Sounds like this might be a bug related to this code: https://github.com/nickschot/ember-mobile-menu/blob/83a142c91d588c38a2a9f25768df703dbf8ae7c8/addon/components/mobile-menu-wrapper.js#L212-L217
Could you try & modify those lines into:
if (targetMenu) {
let activeIsTarget = this.activeMenu === targetMenu;
this.close();
if (!activeIsTarget) {
this.open(targetMenu);
}
}
and see if that fixes it?
On opening the modal I toggle the right menu. The above happens when I cancel the modal. Looks like two menus render and they are both open. This only seems to happen when using
(fn mmw.actions.toggle 'right')
Code