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

developit / preact / 3337
100%

Build:
DEFAULT BRANCH: master
Ran 31 Mar 2019 10:43AM UTC
Jobs 1
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

pending completion
3337

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

Jobs
ID Job ID Ran Files Coverage
1 3337.1 31 Mar 2019 10:43AM UTC 0
100.0
Travis Job 3337.1
Source Files on build 3337
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3337
  • 405d4e5f on github
  • Prev Build on master (#3325)
  • Next Build on master (#3346)
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

© 2025 Coveralls, Inc