Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Commit

Permalink
Fixed double binding in examples user-form.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwebman committed Feb 1, 2018
1 parent 00155f2 commit 5979fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/quick-start/components/user-form.js
Expand Up @@ -7,7 +7,7 @@ window.i = icepick;

const required = (val) => !!(val && val.length);

function hasToBeTrue(value) {
function hasToBeTrue(value) {
if (value === false || typeof value !== 'boolean') {
return false;
}
Expand Down Expand Up @@ -39,7 +39,7 @@ class UserForm extends React.Component {
}
render() {
return (
<Form model="user" onSubmit={this.handleSubmit.bind(this)}>
<Form model="user" onSubmit={this.handleSubmit}>
<div>
<label>First name:</label>
<Control.text
Expand Down

0 comments on commit 5979fb1

Please sign in to comment.