Commit Graph

110 Commits

Author SHA1 Message Date
christianalfoni 4cd34a0084 bumped to 0.11 2015-04-13 18:30:56 +02:00
christianalfoni b0738a5032 Added validation objects and required validation 2015-04-13 18:29:23 +02:00
christianalfoni 36d4439019 added react 0.13 as test lib 2015-04-13 18:29:23 +02:00
christianalfoni 5e00ea281f Passing invalidate on onValidSubmit and onInvalidSubmit 2015-04-13 18:29:22 +02:00
Christian Alfoni fe8ec06af9 Update README.md 2015-04-12 13:23:28 +02:00
Christian Alfoni 82457b66f6 Update README.md 2015-04-12 12:59:40 +02:00
Christian Alfoni 53a4985a7e Merge pull request #79 from Semigradsky/examples
Added example of custom validation
2015-04-11 15:30:16 +02:00
Semigradsky 4a40cd21f1 Add example of custom validation 2015-04-09 13:48:09 +03:00
Christian Alfoni a33a9db353 Update README.md 2015-04-07 19:40:56 +02:00
christianalfoni ad83a10894 Fixed bugs with isValidValue and isValidForm 2015-04-07 07:24:19 +02:00
christianalfoni f1d9d6c15c Added section on validate method 2015-04-03 13:25:04 +02:00
christianalfoni 0964b07e1d Fixed validation bug 2015-04-03 13:20:17 +02:00
Christian Alfoni a348b1aa20 Merge pull request #68 from Semigradsky/npmignore
Added npmignore file
2015-04-01 14:04:46 +02:00
christianalfoni 8cbd6e19ff added internal validation 2015-04-01 13:59:52 +02:00
christianalfoni ebd17fde62 Fixed bug with internal ajax 2015-04-01 13:49:38 +02:00
Christian Alfoni eb3eaa6544 Merge pull request #63 from philippotto/checkValidity
Allow a component to decide whether it is valid (fixes #60)
2015-04-01 13:43:18 +02:00
Christian Alfoni 4814fdbe79 Merge pull request #69 from Semigradsky/examples
Added example
2015-04-01 13:19:42 +02:00
Semigradsky a90b98111f Added example 2015-03-30 13:38:05 +03:00
Semigradsky 5116f5999d Added npmignore file 2015-03-30 11:25:08 +03:00
christianalfoni 47dd80b67f Bumped to release 0.9.0 2015-03-29 13:39:52 +02:00
christianalfoni dca9f78524 Handle any value with tests 2015-03-28 23:12:23 +01:00
Christian Alfoni 703e879f75 Merge pull request #49 from sdemjanenko/fix_initial_false_value
Fix bug: Allow value === false to be passed
2015-03-28 23:10:23 +01:00
Christian Alfoni 716498e6d7 Merge pull request #51 from sdemjanenko/fix_spec_typo
Element spec: Fix typo in spec description
2015-03-28 23:08:02 +01:00
Christian Alfoni c49f7949f2 Merge pull request #55 from Semigradsky/patch-1
Update README.md
2015-03-28 23:02:47 +01:00
Christian Alfoni 6e74d92392 Merge pull request #50 from sdemjanenko/add_validation_tests
Rewrite validation tests
2015-03-28 22:56:42 +01:00
christianalfoni 5e12c95d36 Support React 0.13.1 2015-03-24 07:53:09 +01:00
Philipp Otto 0d34e7b5bb Allow a component to decide whether it is valid (fixes #60) 2015-03-23 00:16:05 +01:00
Christian Alfoni 36d9741535 Merge pull request #61 from michaelcontento/patch-1
Fix global variable leak
2015-03-20 10:53:20 +01:00
Christian Alfoni dd259c5b13 Merge pull request #59 from mistakster/patch-1
Suppress error in non-browser environments
2015-03-20 10:49:14 +01:00
Michael Contento 879b19f2cd Fix global variable leak 2015-03-18 08:10:32 +01:00
Vladimir Kuznetsov 6fcc9391c7 Suppress error in non-browser environments 2015-03-17 11:44:03 +05:00
Dmitry 891526a0fd Update README.md
Added some crosslink for easy navigation.
2015-03-15 12:57:50 +03:00
Stephen Demjanenko 27f705a3d0 Element spec: Fix typo in spec description 2015-03-14 10:43:09 -07:00
Stephen Demjanenko 011d98dfad Rewrite validation tests
Write more tests and share code between them in a describe block with a
beforeEach to set up initial state.
2015-03-14 10:35:21 -07:00
Stephen Demjanenko bade05b9cd Fix bug: Allow value === false to be passed
This is necessary to make a checkbox input work.  Without this change,
value would be set to '' in this case.  Add a test.
2015-03-14 09:45:33 -07:00
Christian Alfoni 2c64535522 Update package.json 2015-03-09 17:22:53 +01:00
Christian Alfoni ba71d27135 Merge pull request #41 from jonaswindey/patch-2
Add repository to package.json (prevents npm WARN)
2015-03-09 17:21:54 +01:00
Jonas Windey 51bdf8da4f Add repository to package.json (prevents npm WARN)
This prevents the npm warning:
``` 
npm WARN package.json formsy-react@0.8.0 No repository field.
```
2015-03-09 08:46:28 +01:00
christianalfoni 86aec656df Fixed dynamic validations, disable form, dynamic value update etc. 2015-03-07 12:51:15 +01:00
christianalfoni d9bf45d417 Added CSRF token handling 2015-03-07 11:12:08 +01:00
Christian Alfoni 6b69c0d8d5 Merge pull request #34 from bryannaegele/master
Added dynamic validation rule support
2015-03-07 10:09:59 +01:00
Christian Alfoni d04bae94f9 Merge pull request #38 from sdemjanenko/settimeout_check_mounted
Check isMounted in setTimeout
2015-03-07 09:51:05 +01:00
Christian Alfoni 5323d08802 Merge pull request #39 from snario/patch-1
Move React to peerDependencies
2015-03-07 09:31:44 +01:00
Liam Horne cef4495d41 Move React to peerDependencies
Using this package and `react` with `npm` causes both scripts to be loaded twice. Peer dependencies is meant to fix this.

See http://blog.nodejs.org/2013/02/07/peer-dependencies/
2015-03-06 19:54:29 -05:00
Stephen Demjanenko a9c4746c21 Check isMounted in setTimeout
This fixes some occasional errors that I would see when causing a form
to unmount.  The unmount would happen before the setTimeout which then
caused setState to be called on an unmounted component.  React throws an
error in this case.

The fix is to check if the component is mounted before running the body
of the setTimeout
2015-03-06 12:19:00 -08:00
Bryan Naegele 7fb17a752d Dynamic validations and requiring
Allow validations to be updated, including requiring
2015-03-02 13:22:11 -06:00
Bryan Naegele 5cc979e249 Dynamic validation support
Add dynamic validation support
2015-03-02 13:08:08 -06:00
Christian Alfoni fa4caa6588 Merge pull request #30 from hahahana/isNumeric
Actually check for invalid floats
2015-02-26 14:15:19 +01:00
Hana Wang 9ef8590f80 Actually check for invalid floats 2015-02-26 04:59:19 -08:00
Christian Alfoni 72a7be5d64 Merge pull request #29 from hahahana/add-csrf-to-header
Attach CSRF token to header if it exists
2015-02-26 13:47:44 +01:00