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

Kozea / formol / 443
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/url-parse-1.5.3
DEFAULT BRANCH: master
Ran 19 Mar 2021 02:10PM 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
443

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%)

462.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 443.1 19 Mar 2021 02:10PM UTC 0
100.0
Travis Job 443.1
Source Files on build 443
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #443
  • 9803a01e on github
  • Next Build on fix-modified-state-on-submit (#457)
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