Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions components/modal/__tests__/modal.browser-test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ describe('SLDSModal: ', function () {
appNode = null;
});

afterEach(() => {
ReactDOM.unmountComponentAtNode(container);
document.body.removeChild(container);
container = null;
afterEach((done) => {
// We run into a race condition if we do not have this wait
// with the changes to react-modal, we end up trying to set state
// on an unmounted component
setTimeout(() => {
ReactDOM.unmountComponentAtNode(container);
document.body.removeChild(container);
container = null;
done();
}, 100);
});

const defaultProps = {
Expand Down
32 changes: 15 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"prop-types": ">=15.7.2",
"react-contenteditable": "^3.3.5",
"react-highlighter": "^0.4.3",
"react-modal": "3.13.1",
"react-modal": "3.14.2",
"react-onclickoutside": "^6.10.0",
"react-required-if": "^1.0.3",
"react-text-truncate": "^0.16.0",
Expand Down