mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
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);
|
||||
|
||||
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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user