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

reactjs / react-modal / 712 / 1
85%
master: 85%

Build:
DEFAULT BRANCH: master
Ran 12 Dec 2017 11:24PM UTC
Files 10
Run time 20s
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

12 Dec 2017 11:21PM UTC coverage: 86.232% (-0.2%) from 86.441%
712.1

Pull #581

travis-ci

web-flow
[fixed] check if focusLaterElements is empty before popping

Without a check to see if the focusLaterElements array is empty, we
end up calling `pop()` on an empty array—resulting in an undefined
value—and inadvertently jump to the `catch` block when we attempt to
call `focus()` on `undefined`.

This ensures that if there are no existing elements to return focus to
once our modal is closed (this happens often in a testing env), we do
not throw a TypeError by accident.
Pull Request #581: Check if focusLaterElements array is empty before popping

230 of 355 branches covered (64.79%)

357 of 414 relevant lines covered (86.23%)

27.42 hits per line

Source Files on job 712.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 712
  • Travis Job 712.1
  • 49e3b03f on github
  • Prev Job for on master (#709.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