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

reactjs / react-modal / 712
85%

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

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

3 of 3 new or added lines in 1 file covered. (100.0%)

357 of 414 relevant lines covered (86.23%)

27.42 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
100.0
src/helpers/focusManager.js

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/helpers/focusManager.js
Jobs
ID Job ID Ran Files Coverage
1 712.1 12 Dec 2017 11:24PM UTC 0
86.23
Travis Job 712.1
Source Files on build 712
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #712
  • Pull Request #581
  • PR Base - master (#709)
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