Only disable closing the modal by clicking outside of its element when inflight

GitOrigin-RevId: 9e9f24aed6442a892ed95c1ee598fc82ec931a1b
This commit is contained in:
M Fahru 2022-12-21 19:44:28 -07:00 committed by Copybot
parent 7e68b4f0d5
commit e855b96953

View file

@ -24,7 +24,9 @@ function CloneProjectModal({
show={show} show={show}
onHide={onHide} onHide={onHide}
id="clone-project-modal" id="clone-project-modal"
backdrop="static" // backdrop="static" will disable closing the modal by clicking
// outside of the modal element
backdrop={inFlight ? 'static' : undefined}
> >
<CloneProjectModalContent <CloneProjectModalContent
handleHide={onHide} handleHide={onHide}