I have a side menu in my vue app and I want it to stay visible on large screen and act normally on small devices.
I tried to catch the event ionWillClose and cancel the event without success.
Is there a way to prevent closing the menu when we click outside of it?
Here’s the menu declaration:
<ion-menu @ionWillClose=“OnMenuClose” content-id=“main-content” type=“reveal” class=“main-content-menu”>
Here’s my attempt at stopping the closing:
function OnMenuClose(e:Event){
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
return false;
}
Thanks