There isn't much one can do without a website link. Its likely a JS issue so you could try using your browser console to see if any error is thrown.. Else you can share your website link and i'll have a look for you.
-----------
Hmmm... Are you trying to stop the Modal from closing when you click outside the Modal?