Side menu sometimes does not fully close

I am using an ion-side-menus element to contain the majority of my app’s views so that there is a right side menu accessible at any time.

Sometimes when the menu closes, it does not close all the way, leaving the main content shifted slightly to the left with the right side menu slightly exposed:

This is an error I’m having a hard time reproducing and seems to happen randomly. It only goes away if I navigate to a state that does not use the abstract menu container state (which in my case means logging out of the app).

Does anyone have any ideas on what might be causing this and how to prevent it?