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

reactjs / react-modal / 99
85%

Build:
DEFAULT BRANCH: master
Ran 06 Feb 2017 12:59PM UTC
Jobs 1
Files 7
Run time 0s
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
99

Pull #253

travis-ci

web-flow
[fixed] respect closeTimeoutMS during unmount

Fixes issue #17: "When the modal is unmounted, it will abruptly close,
not waiting for any animations to finish."

The bug was caused by the Modal component unmounting the portal
immediately in `componentWillUnmount` regardless of whether the portal
is currently closing or would animate to close.

Now when a Modal has a non-zero `closeTimeoutMS`, the Modal inspects the
portal state before closing.  If the portal is open or closing, but not
closed, it waits to unmount the portal.  If the portal is open and not
already closing, the Modal calls closeWithTimeout() to trigger the
close.

Adds test to ensure portal DOM persists after Modal is unmounted when
the Modal has a `closeTimeoutMS` set.  Updates existing tests to
properly unmount test Modal instances.
Pull Request #253: [fixed] respect closeTimeoutMS during unmount

11 of 11 new or added lines in 2 files covered. (100.0%)

220 of 283 relevant lines covered (77.74%)

16.14 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
lib/components/Modal.js
4
100.0
lib/components/ModalPortal.js
Jobs
ID Job ID Ran Files Coverage
1 99.1 06 Feb 2017 12:59PM UTC 0
77.74
Travis Job 99.1
Source Files on build 99
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #99
  • Pull Request #253
  • PR Base - master (#91)
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