I am using Mini variant drawer from Material UI and its working fine but in this drawer when I open the nav bar and click anywhere outside the nav bar, it isn't closing. Just like in Temporary drawer. I tried to implement but failed.
Mini variant drawer
https://codesandbox.io/s/6xdsb?file=/index.js
Temporary drawer
https://codesandbox.io/s/ktmju
Any help would be really appriciated.