Skip to content

Commit

Permalink
[update] change mask position
Browse files Browse the repository at this point in the history
  • Loading branch information
kazshiba committed Dec 16, 2016
1 parent 88ea3a4 commit 099a03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ export default class Modal extends Component {
render() {
return (
<div>
<div onClick={this.props.onClickAway ? this.props.onClickAway : false} style={this.state.visible ? this.state.style.mask : this.state.style.maskHidden} />
<div style={this.state.visible ? this.state.style.container : this.state.style.containerHidden}>
<div style={this.state.visible ? this.state.style.panel : this.state.style.panelHidden}>
{this.props.children}
</div>
<div style={this.state.visible ? this.state.style.mask : this.state.style.maskHidden} onClick={this.props.onClickAway ? this.props.onClickAway : false} />
</div>
</div>
);
Expand Down

0 comments on commit 099a03c

Please sign in to comment.