Skip to content

Commit

Permalink
[FormsyText] Add updateImmediately prop & fix handleChange
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes committed Jun 6, 2016
1 parent 4ef563a commit 4708bf1
Showing 1 changed file with 30 additions and 29 deletions.
59 changes: 30 additions & 29 deletions examples/webpack-example/src/app/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,28 +83,15 @@ const Main = React.createClass({
onValidSubmit={this.submitForm}
onInvalidSubmit={this.notifyFormError}
>
<FormsyText
name="name"
validations="isWords"
validationError={wordsError}
<FormsyDate
name="date"
required
hintText="What is your name?"
floatingLabelText="Name"
/>
<FormsyText
name="age"
validations="isNumeric"
validationError={numericError}
hintText="Are you a wrinkly?"
floatingLabelText="Age (optional)"
floatingLabelText="Date"
/>
<FormsyText
name="url"
validations="isUrl"
validationError={urlError}
<FormsyTime
name="time"
required
hintText="http://www.example.com"
floatingLabelText="URL"
floatingLabelText="Time"
/>
<FormsySelect
name="frequency"
Expand All @@ -116,16 +103,6 @@ const Main = React.createClass({
<MenuItem value={'nightly'} primaryText="Every Night" />
<MenuItem value={'weeknights'} primaryText="Weeknights" />
</FormsySelect>
<FormsyDate
name="date"
required
floatingLabelText="Date"
/>
<FormsyTime
name="time"
required
floatingLabelText="Time"
/>
<FormsyCheckbox
name="agree"
label="Do you agree to disagree?"
Expand Down Expand Up @@ -154,6 +131,30 @@ const Main = React.createClass({
disabled={true}
/>
</FormsyRadioGroup>
<FormsyText
name="name"
validations="isWords"
validationError={wordsError}
required
hintText="What is your name?"
floatingLabelText="Name"
/>
<FormsyText
name="age"
validations="isNumeric"
validationError={numericError}
hintText="Are you a wrinkly?"
floatingLabelText="Age (optional)"
/>
<FormsyText
name="url"
validations="isUrl"
validationError={urlError}
required
hintText="http://www.example.com"
floatingLabelText="URL"
updateImmediately
/>
<RaisedButton
style={submitStyle}
type="submit"
Expand Down

0 comments on commit 4708bf1

Please sign in to comment.