Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ui: progress dialog should close after animating

ammarahm-ed11f43727f9ee
diff --git a/apps/mobile/src/components/ProgressDialog/index.js b/apps/mobile/src/components/ProgressDialog/index.js
index 1a6e6e841..b381ff865 100644
--- a/apps/mobile/src/components/ProgressDialog/index.js
+++ b/apps/mobile/src/components/ProgressDialog/index.js
@@ -40,13 +40,14 @@ const ProgressDialog = ({context}) => {
};
const close = () => {
- setVisible(false);
+ actionSheetRef.current?.setModalVisible(false);
};
return !visible ? null : (
<ActionSheetWrapper
fwdRef={actionSheetRef}
gestureEnabled={dialogData?.noProgress}
+ closeOnTouchBackdrop={dialogData?.noProgress}
onClose={() => {
if (dialogData.noProgress) {
setVisible(false);