actual/patches/react-modal+3.4.4.patch
2022-04-28 22:44:38 -04:00

14 lines
556 B
Diff

diff --git a/node_modules/react-modal/lib/components/ModalPortal.js b/node_modules/react-modal/lib/components/ModalPortal.js
index 1dcab7d..0fa19dc 100644
--- a/node_modules/react-modal/lib/components/ModalPortal.js
+++ b/node_modules/react-modal/lib/components/ModalPortal.js
@@ -286,7 +286,7 @@ var ModalPortal = function (_Component) {
}, {
key: "componentWillUnmount",
value: function componentWillUnmount() {
- this.afterClose();
+ setTimeout(() => { this.afterClose() }, 0)
clearTimeout(this.closeTimer);
}
}, {