How to stop modal from closing on outside click in React?

Posted by Jessica Taylor | Updated on

Want to stop modal from closing on outside click in React? Set the modal’s backdrop to static. The modal component has a prop of backdrop, set that to backdrop=”static”


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers