Skip to content
This repository was archived by the owner on Jan 4, 2018. It is now read-only.

Fix for binding props and context #21

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/components/pages/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export default class Login extends React.Component {
router: PropTypes.any
}

constructor(props, context) {
super(props, context)
this.handleSubmit = this.handleSubmit.bind(this)
}

handleSubmit (evt) {
evt.preventDefault()
const { store, router } = this.context
Expand Down