CoreUI React - How to block the esc key in modal


I solved the click outside the modal with closeOnBackdrop, is there a way to prevent the esc key?

Unfortunately you can’t block esc key.
We will consider your suggestion in the next version of CoreUI.

I had the same issue. What you need to do is put a onKeyUp in the “Form” tag.

"Form onKeyPress={(event) => {event.key === “Enter” && event.preventDefault()}}

Hope that helps.