Merge pull request #483 from ThibG/glitch-soc/fixes/modal

Fix modals testing for props.noEsc (fixes #482)
master
ThibG 6 years ago committed by GitHub
commit f47f6c3345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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} />}

Loading…
Cancel
Save