mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 23:58:06 +01:00
Merge pull request #483 from ThibG/glitch-soc/fixes/modal
Fix modals testing for props.noEsc (fixes #482)
This commit is contained in:
commit
f47f6c3345
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue