Skip to content

Commit 59fcc58

Browse files
author
Mark Funk
committed
Adding transition to null for an overlay that has been rendered and is switching to no longer be rendered
1 parent 2a5905a commit 59fcc58

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/OverlayMixin.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ module.exports = {
5454
// Save reference to help testing
5555
if (overlay !== null) {
5656
this._overlayInstance = React.render(overlay, this._overlayTarget);
57+
} else {
58+
// Unrender if the component is null for transitions to null
59+
this._unrenderOverlay();
5760
}
5861
},
5962

0 commit comments

Comments
 (0)