summaryrefslogtreecommitdiff
path: root/src/components/modals
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/modals')
-rw-r--r--src/components/modals/Modal.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/modals/Modal.js b/src/components/modals/Modal.js
index e2d19fcb..bb8fa00f 100644
--- a/src/components/modals/Modal.js
+++ b/src/components/modals/Modal.js
@@ -17,6 +17,8 @@ class Modal extends React.Component {
componentDidMount() {
this.openOrCloseModal();
+
+ window["$"]("#" + this.id).on("hide.bs.modal", this.props.onCancel.bind(this));
}
componentDidUpdate() {