Enable/Disable two side menus

I have two side menus in my app. They’re working until I try to disable them by this.menu.enable(false). After using this.menu.enable(true) only the left one is working.

Is there a way to disable/enable both of them programmatically for some pages?