overshadow requirement for remote-lookup
This commit is contained in:
@ -44,7 +44,7 @@ const Lightbox = React.createClass({
|
||||
|
||||
componentDidMount () {
|
||||
this._listener = e => {
|
||||
if (e.key === 'Escape') {
|
||||
if (this.props.isVisible && e.key === 'Escape') {
|
||||
this.props.onCloseClicked();
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user