I am trying to use Drawer component in MUI React. I want that state inside the Drawer component should not lost on closing of Drawer component, hence I'm passing variant="persistent" in Drawer component.
Now, the problem is that the Persistent Drawer does not provide backdrop functionality by default unlike temporary drawers hence I'm unable to close it on outside click.
I tried {{ModalProps={{ onBackdropClick: this.toggleDrawer }} }} also but still it is not working.
Is there any workaround for this?
MUI Version: 1.0.0