diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-05-15 10:39:12 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-05-15 10:39:12 +0200 |
commit | dfa60cb0a865a6477c92ea8dd3ee0c3aa033a56a (patch) | |
tree | f8c1a4ed3d81a3484a1030f4d023148c175cd311 /app/javascript | |
parent | 939ea456d28072592e44809636919fb03e967001 (diff) |
Fix modals testing for props.noEsc (fixes #482)
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/flavours/glitch/features/ui/components/modal_root.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/ui/components/modal_root.js b/app/javascript/flavours/glitch/features/ui/components/modal_root.js index cdb6dc9d0..7e9980ef7 100644 --- a/app/javascript/flavours/glitch/features/ui/components/modal_root.js +++ b/app/javascript/flavours/glitch/features/ui/components/modal_root.js @@ -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} />} |