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

Kozea / formol / 443 / 1
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
Files 53
Run time 4s
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

19 Mar 2021 02:03PM UTC coverage: 100.0%. First build
443.1

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

Source Files on job 443.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 368
  • Travis Job 443.1
  • 9803a01e on github
  • Next Job for on fix-modified-state-on-submit (#457.1)
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