Fixed Modal Escape
This commit is contained in:
@ -46,8 +46,6 @@ class Modal extends React.Component {
|
|||||||
|
|
||||||
onKeyUp(e) {
|
onKeyUp(e) {
|
||||||
if(!Keyboard.isEscape()) return;
|
if(!Keyboard.isEscape()) return;
|
||||||
e.preventDefault();
|
|
||||||
e.stopPropagation();
|
|
||||||
this.props.closeModal();
|
this.props.closeModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user