Currently, it looks like Dialog.SubmitAction unconditionally calls close(), which triggers onRequestClose, which then causes a close in DialogModal. Should we allow this to be conditional? What if on submit, we want to trigger some validation and keep the user in the modal?
Currently, it looks like
Dialog.SubmitActionunconditionally callsclose(), which triggersonRequestClose, which then causes a close inDialogModal. Should we allow this to be conditional? What if on submit, we want to trigger some validation and keep the user in the modal?