I’ve been tasked with implementing a flow where pressing a button on a Modal
triggers an HTTP request to our API. We want to prevent the modal from being dismissed while that request is in progress so that we can show content/feedback based on the response, but it seems like either pressing Esc
, pressing the x
close icon in the top corner of the modal, or pressing outside the modal on the backdrop force the modal to close anyway. Is there any way to prevent this behaviour? Thanks!