Ionic 5 React - How to make menu undraggable in some cases?

There seems to be a draggable prop on IonMenu but it doesn’t work.