Pass onRequestClose to ReactModal to handle escape key

This commit is contained in:
Paul Kaplan committed 2017-06-07 09:47:07 -04:00
1 parent ffa5c3b12e
commit 736cb4c41f
1 file changed
+1
+1
View File
@@ -18,6 +18,7 @@ class ModalComponent extends React.Component {
isOpen={this.props.visible}
overlayClassName={styles.modalOverlay}
ref={m => (this.modal = m)}
onRequestClose={this.props.onRequestClose}
>
<Box
direction="column"