Skip to content

Commit

Permalink
Changed form close behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
methusael13 committed Feb 2, 2018
1 parent c209c1c commit e70b8dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/AuthCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,14 @@ class AuthCard extends Component {
const mAnim = this.animProps.modal[animEntry ? 'entry' : 'exit'];

return (
<div className="modal-window" onClick={(event) => { event.preventDefault(); }}>
<div className="modal-window">
<div className="modal-window-container">
{/* The animated background panel */}
<Motion defaultStyle={mAnim.start} style={mAnim.end}>
{
interpStyle => (
<div className="modal-window-panel" style={{ opacity: interpStyle.opacity }}></div>
<div className="modal-window-panel" style={{ opacity: interpStyle.opacity }}
onClick={(event) => { event.preventDefault(); this.triggerClose(event); }}></div>
)
}
</Motion>
Expand Down

0 comments on commit e70b8dd

Please sign in to comment.