mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-28 19:10:22 -05:00
Fix modals testing for props.noEsc (fixes #482)
This commit is contained in:
parent
939ea456d2
commit
dfa60cb0a8
@ -59,7 +59,7 @@ export default class ModalRoot extends React.PureComponent {
|
|||||||
const visible = !!type;
|
const visible = !!type;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Base onClose={onClose} noEsc={props.noEsc}>
|
<Base onClose={onClose} noEsc={props ? props.noEsc : false}>
|
||||||
{visible && (
|
{visible && (
|
||||||
<BundleContainer fetchComponent={MODAL_COMPONENTS[type]} loading={this.renderLoading(type)} error={this.renderError} renderDelay={200}>
|
<BundleContainer fetchComponent={MODAL_COMPONENTS[type]} loading={this.renderLoading(type)} error={this.renderError} renderDelay={200}>
|
||||||
{(SpecificComponent) => <SpecificComponent {...props} onClose={onClose} />}
|
{(SpecificComponent) => <SpecificComponent {...props} onClose={onClose} />}
|
||||||
|
Loading…
Reference in New Issue
Block a user