1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-11-06 09:19:38 +02:00

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

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
};