Fixed: Background click not closing episode modal when first opened
This commit is contained in:
parent
5449389ca5
commit
100b87193d
|
@ -13,7 +13,7 @@ class EpisodeDetailsModal extends Component {
|
||||||
super(props, context);
|
super(props, context);
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
closeOnBackgroundClick: false
|
closeOnBackgroundClick: props.selectedTab !== 'search'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,6 +52,7 @@ class EpisodeDetailsModal extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
EpisodeDetailsModal.propTypes = {
|
EpisodeDetailsModal.propTypes = {
|
||||||
|
selectedTab: PropTypes.string,
|
||||||
isOpen: PropTypes.bool.isRequired,
|
isOpen: PropTypes.bool.isRequired,
|
||||||
onModalClose: PropTypes.func.isRequired
|
onModalClose: PropTypes.func.isRequired
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue