mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
fix base modal prop passed to ReactModal (#2165)
This commit is contained in:
parent
69299d3ef9
commit
8b222f0466
1 changed files with 5 additions and 1 deletions
|
@ -26,7 +26,11 @@ class Modal extends React.Component {
|
|||
return (
|
||||
<ReactModal
|
||||
appElement={document.getElementById('app')}
|
||||
bodyOpenClassName={this.props.useStandardSizes ? classNames('overflow-hidden') : null}
|
||||
// bodyOpenClassName can be blank string, but must not be null here; a null value causes
|
||||
// an error, because ReactModal does not correctly handle the case of a null bodyOpenClassName
|
||||
bodyOpenClassName={classNames({
|
||||
'overflow-hidden': this.props.useStandardSizes
|
||||
})}
|
||||
className={{
|
||||
base: classNames('modal-content', this.props.className, {
|
||||
'modal-sizes': this.props.useStandardSizes
|
||||
|
|
Loading…
Reference in a new issue