Przeglądaj źródła

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

GitOrigin-RevId: 9e9f24aed6442a892ed95c1ee598fc82ec931a1b
M Fahru 3 lat temu
rodzic
commit
e855b96953

+ 3 - 1
services/web/frontend/js/features/clone-project-modal/components/clone-project-modal.js

@@ -24,7 +24,9 @@ function CloneProjectModal({
       show={show}
       onHide={onHide}
       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
         handleHide={onHide}