Fix modals testing for props.noEsc (fixes #482)

signup-info-prompt
Thibaut Girka 2018-05-15 10:39:12 +02:00
parent 939ea456d2
commit dfa60cb0a8
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ export default class ModalRoot extends React.PureComponent {
const visible = !!type;
return (
<Base onClose={onClose} noEsc={props.noEsc}>
<Base onClose={onClose} noEsc={props ? props.noEsc : false}>
{visible && (
<BundleContainer fetchComponent={MODAL_COMPONENTS[type]} loading={this.renderLoading(type)} error={this.renderError} renderDelay={200}>
{(SpecificComponent) => <SpecificComponent {...props} onClose={onClose} />}