Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
(dialog) feature request: default result value for closing with esc or via backdrop click #14780
Please describe the feature you would like to request.
Current behaviour: When a dialog is closed with esc or via backdrop click the provided result is
What is the use-case or motivation for this proposal?
We have some generic dialogs which also provide a "cancel" button that returns specific data. Currently everywhere the dialog is opened, we need to make a check whether the result is undefined or not. Providing a default value for those cases would definitely be better.