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

developit / preact / 3337 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 31 Mar 2019 10:43AM UTC
Files 20
Run time 1s
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

31 Mar 2019 10:37AM UTC coverage: 100.0%. Remained the same
3337.1

push

travis-ci

web-flow
Fix remove button adding todos in demo app (#1488)

This PR fixes an issue where the `x` buttons in the todo demo would actually add a todo instead of removing it. Note that there is a second issue at play that needs to fixed separately which causes stale dom nodes when wrapped in a `Fragment`.

The issue is caused by weird browser behavior which treat any `<buttton>` that doesn't have a `type` attribute as a `submit` button if it is inside a `<form>` :man_shrugging:

In our case it would immediately submit the form which always adds a todo.
```jsx
<form onSubmit={this.addTodo} action="javascript:">...</form>
```

707 of 1106 branches covered (63.92%)

774 of 774 relevant lines covered (100.0%)

414.99 hits per line

Source Files on job 3337.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 3082
  • Travis Job 3337.1
  • 405d4e5f on github
  • Prev Job for on master (#3325.1)
  • Next Job for on master (#3346.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