Skip to content

Commit f399d6e

Browse files
committed
about to update verison with better style overwriting
1 parent 8e9d794 commit f399d6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simple-modal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export default class Modal extends React.Component{
6262
}
6363

6464
return (
65-
<div {...this.props} style={modal || this.props.style} onClick={this.hideOnOuterClick} data-modal="true">
66-
<div style={container}>
65+
<div {...this.props} style={Object.assign({},modal,this.props.style)} onClick={this.hideOnOuterClick} data-modal="true">
66+
<div style={Object.assign({},container,this.props.containerStyle)}>
6767
{this.props.children}
6868
</div>
6969
</div>

0 commit comments

Comments
 (0)