Fixed: Background click not closing episode modal when first opened

This commit is contained in:
Mark McDowall 2021-04-10 01:36:43 -07:00
parent 5449389ca5
commit 100b87193d
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class EpisodeDetailsModal extends Component {
super(props, context);
this.state = {
closeOnBackgroundClick: false
closeOnBackgroundClick: props.selectedTab !== 'search'
};
}
@ -52,6 +52,7 @@ class EpisodeDetailsModal extends Component {
}
EpisodeDetailsModal.propTypes = {
selectedTab: PropTypes.string,
isOpen: PropTypes.bool.isRequired,
onModalClose: PropTypes.func.isRequired
};