From e855b96953f710686c417bda151e4f487912f826 Mon Sep 17 00:00:00 2001 From: M Fahru Date: Wed, 21 Dec 2022 19:44:28 -0700 Subject: [PATCH] Only disable closing the modal by clicking outside of its element when inflight GitOrigin-RevId: 9e9f24aed6442a892ed95c1ee598fc82ec931a1b --- .../clone-project-modal/components/clone-project-modal.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/clone-project-modal/components/clone-project-modal.js b/services/web/frontend/js/features/clone-project-modal/components/clone-project-modal.js index e28043d15b..bf5c93a72b 100644 --- a/services/web/frontend/js/features/clone-project-modal/components/clone-project-modal.js +++ b/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} >