• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kozea / formol / 457
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/url-parse-1.5.3
DEFAULT BRANCH: master
Ran 24 May 2021 10:43AM UTC
Jobs 1
Files 53
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
457

push

travis-ci

notAro14
Reset modified state on form submit

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.

501 of 501 branches covered (100.0%)

Branch coverage included in aggregate %.

735 of 735 relevant lines covered (100.0%)

463.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 457.1 24 May 2021 10:43AM UTC 0
100.0
Travis Job 457.1
Source Files on build 457
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #457
  • 2ca3556f on github
  • Prev Build on fix-modified-state-on-submit (#443)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc