-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Description
Prerequisites
- I have read the documentation
What theme are you using?
mui
Is your feature request related to a problem? Please describe.
I am using a combination of MUI Dialog
and my form inside it, and I would like to notify users of any unsaved changes before they close the dialog. Is there a way to achieve this with RJSF
? If not, could this feature be considered for inclusion in the roadmap?
Describe the solution you'd like
We need a way to expose the global dirty
state of the form, allowing us to handle it programmatically. This would enable us to prompt an error message in the Dialog's onClose
event if the form is dirty.
Maybe a warnWhenUnsavedChanges
option and a hook?
Describe alternatives you've considered
No response
TheOneTheOnlyJJ