Pass onRequestClose to ReactModal to handle escape key
This commit is contained in:
1 parent
ffa5c3b12e
commit
736cb4c41f
1 file changed
+1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user