Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Submiting did not make this.state.modified resetting to false again. Issue -> For example, when passing Prompt component (react-router-dom) like so `<Formol extra={(this.state) => (<Prompt when={this.state.modified} />)}` It will prompt the user a warning message to confirm the redirection after form submitting. This hangs the redirection waiting for the user confirmation. but the confirmation is implicit as soon as he clicks the submit button. Therefore there is no need to let the form in a modified state when submiting was successful.
- Loading branch information
Aro Andriamaro
committed
May 24, 2021
1 parent
5e91bbf
commit 2ca3556
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters