forked from redux-form/redux-form
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'redux-form/master'
* redux-form/master: (61 commits) Exported getFormNames (redux-form#2519) v6.5.0 Do not set FieldArray as touched on submit, as it causes its entry in storeState.fields to become an object instead of an array. The ARRAY_* reducers expects the fields entry to be an array. Fixes redux-form#2014. (redux-form#2473) Chore/switch shallowequal to lodash isequalwith (redux-form#2506) Keep track of registration count in registeredFields (redux-form#2470) fix: when the Field type is "file", value can not be updated (redux-form#2452) Remove undocumented name, validate and warn from FieldArray props. (redux-form#2467) Clarify what to do when StackOverflow questions get no answers (redux-form#2497) Excluded tests from code climate Enable Code Climate (redux-form#2486) Update ConnectedFields cached handlers when names prop changes. Fixes bug introduced by redux-form#2161. (redux-form#2474) Breaking change: Change Fields names instance API to return FormSection prefixed names, to be consistent with Field and FieldArray. (redux-form#2464) Add initial value selector (redux-form#2460) Add more tests for validateIfNeeded & warnIfNeeded (redux-form#2450) Provide validation functions with access to form props (redux-form#2431) feat(initialize): add keepSubmitSucceeded option (redux-form#2426) Synced Immutable and plain exports (+ tests) (redux-form#2425) Choose getIn based off Iterable.isIterable() (redux-form#2423) Fixed redux-form#2444 unexpected value updates when radio lose focus (redux-form#2445) Beerpay badge ...
- Loading branch information
Showing
152 changed files
with
4,110 additions
and
1,109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
engines: | ||
duplication: | ||
enabled: false | ||
config: | ||
languages: | ||
- javascript | ||
eslint: | ||
enabled: true | ||
ratings: | ||
paths: | ||
- "**.js" | ||
exclude_paths: | ||
- "**.spec.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
language: node_js | ||
|
||
before_install: | ||
- npm install -g npm@latest | ||
|
||
node_js: | ||
- "6" | ||
- "5" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# `Form` | ||
|
||
The `Form` component is a simple wrapper for the React `<form>` component that allows | ||
the surrounding `redux-form`-decorated component to trigger its `onSubmit` function. | ||
|
||
It is only useful if you are: | ||
|
||
- performing your submission from inside your form component by passing | ||
`onSubmit={this.props.handleSubmit(this.mySubmitFunction)}` to your `<form>` | ||
component | ||
- **AND EITHER:** | ||
- initiating your submission via the [`submit()` Instance API](http://redux-form.com/6.5.0/docs/api/ReduxForm.md/#-submit-promise-) (i.e. calling it directly on a reference to your decorated form component) | ||
- initiating your submission by [dispatching the `submit(form)` action](http://redux-form.com/6.5.0/examples/remoteSubmit/) | ||
|
||
If you are passing in your `onSubmit` function as a config parameter or prop, this component will do nothing for you. | ||
|
||
## Importing | ||
|
||
```javascript | ||
var Form = require('redux-form').Form; // ES5 | ||
``` | ||
```javascript | ||
import { Form } from 'redux-form'; // ES6 | ||
``` | ||
## Props you can pass to `Form` | ||
|
||
Any that you can pass to `<form>`, but only one is required. | ||
|
||
### `onSubmit : Function` [required] | ||
|
||
> The function to call when form submission is triggered. | ||
## Usage | ||
|
||
All you do is replace your `<form>` with `<Form>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.