Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tapping outside popup dialog closes it, potentially making user miss it #5778

Closed
nicolas-raoul opened this issue Jul 20, 2024 · 4 comments · Fixed by #6015
Closed

Tapping outside popup dialog closes it, potentially making user miss it #5778

nicolas-raoul opened this issue Jul 20, 2024 · 4 comments · Fixed by #6015

Comments

@nicolas-raoul
Copy link
Member

... especially when uploading many pictures.

I would suggest making such dialogs modal.

screen-20240720-142542.2.mp4
@parneet-guraya
Copy link
Contributor

Could you confirm this again? I tried this by making the dialog show indefinitely (by disabling the code that dismisses it on showLoading(false) event) and on tapping outside or pressing back doesn't dismiss the dialog. I tried in this very same screen.

Record_2024-12-08-05-28-59.mp4

Any chance you're talking about that dialogs should be not cancelable anywhere in the app?

@nicolas-raoul
Copy link
Member Author

This is about this dialog seen in the screencast above:
Screenshot_20241208-103117.png

@parneet-guraya
Copy link
Contributor

Got it!

So, in the API that we use to build these dialogs we have this setCancelable(boolean) which affect both touching outside it's bounds as well as back press meaning if set false it wouldn't let user dismiss the dialog upon back press as well, which we don't intend right? I just want to confirm this because if we want to disable the touch outside part only then we may have to use something else.

So, we have two options:

  • use the above setCancelable(boolean (disabling both outside touches & back press) and rely on the buttons that dialogs have.
  • as stated above, have some way out to only block outside touch and not block back press events.

Also, I think both touching outside & back press disable would make sense only in loading dialogs

@nicolas-raoul
Copy link
Member Author

There is a "No" button so I would say disabling Back is OK if easier to implement/maintain. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants