-
Notifications
You must be signed in to change notification settings - Fork 83
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
ConfirmDialog setCloseOnOutsideClick #8126
Comments
The ConfirmDialog is not really designed to be used for anything that can just be dismissed like that without making an explicit choice – it's intended for use cases where the user actually needs to confirm or cancel an operation. I would recommend using the normal Dialog for this instead. |
I agree! I would be nice to have the possibility to have a
Then I could delete my MyConfirmDialog extends Dialog, because ConfirmDialog has everything I need. I could also use the ugly executeJs above in InfoDialog.setCloseOnOutsideClick, but not so nice. It is maybe a more pretty way to close the dialog on outside click? |
Is there a particular reason why you want to use ConfirmDialog instead of Dialog for use cases that are not about actually confirming something? |
Describe your motivation
Started to replace my old component MyConfirmDialog, which extends Dialog, with the nice ConfirmDialog. Could not find setCloseOnOutsideClick, which I use for Info/Warning.
Describe the solution you'd like
Add
Describe alternatives you've considered
Currently using this hack:
Additional context
No response
The text was updated successfully, but these errors were encountered: