Commit Graph

84 Commits

Author SHA1 Message Date
Tomas Holas 2ef73a2ec2 Merge remote-tracking branch 'upstream/master' 2015-05-16 13:10:16 +02:00
Alex Vaos 5b2ca883f3 typeo in error message 2015-05-15 10:59:16 -07:00
Semigradsky 49d7d39005 💄 cleanup 2015-05-11 13:48:22 +03:00
Evan Seguin 5ae260820e adding tests and fixing a bug where an error would be thrown when comparing an object and null 2015-05-08 09:28:58 -07:00
Evan Seguin effa9de53f Adding type checks to prevent errors resulting from assuming two object properties are of the same
type
2015-05-07 11:49:41 -07:00
Evan Seguin d225fa3d2b adding an undefined check to the isSame function 2015-05-07 11:34:16 -07:00
Tomáš Holas 9ab0acff82 Allow form to be initialised with specified data
Modify reset function so that it accepts argument with data model that the form should be initialised with. This comes handy when you want to edit an object to have the form prefilled with object data by just passing the object to reset function instead of filling the fields manualy.
2015-05-04 22:22:05 +02:00
Semigradsky f168b53a10 Add some validation rules 2015-04-29 16:35:53 +03:00
christianalfoni 37018b10fa Merged pull, fixed equality bug and added tests 2015-04-29 14:57:51 +02:00
Semigradsky 9a7bff0e03 Removed 'required' check from validations 2015-04-27 12:29:23 +03:00
christianalfoni 9b2d9598e8 added pull request and created tests and documentation 2015-04-25 12:20:39 +02:00
christianalfoni accc0815db Merge branch 'master' of https://github.com/christianalfoni/formsy-react 2015-04-25 12:14:26 +02:00
christianalfoni 8acaeadaee Fixed value bug and configured deploy new version script 2015-04-25 12:14:15 +02:00
Erwan Jegouzo 355c0bbee3 don't validate the inputs when the form was not submitted
adding resetForm method
2015-04-22 23:14:24 -04:00
Semigradsky b18b4e8c79 Clean up 2015-04-22 19:06:53 +03:00
christianalfoni f64d2443b9 releasing 0.12.6 2015-04-22 16:54:46 +02:00
christianalfoni 33ae737868 Merge branch 'master' of https://github.com/christianalfoni/formsy-react 2015-04-22 16:37:28 +02:00
christianalfoni d8cd404412 Fixed validation rule value 2015-04-22 16:37:25 +02:00
Erwan Jegouzo 8f4e2566d5 improving validation rules + unit tests 2015-04-21 16:43:14 -04:00
christianalfoni 4267c40f3b Fixed validation errors using callback 2015-04-17 19:36:28 +02:00
christianalfoni aaac6d0618 Fixed bug with comparing validations. Removed dynamic validations 2015-04-16 17:19:01 +02:00
christianalfoni 1475dbb88b Fixed required bug 2015-04-15 20:12:40 +02:00
christianalfoni d0af1375a2 Fixed callbacks for onInvalidSubmit and onValidSubmit 2015-04-15 07:28:39 +02:00
christianalfoni 1fb4461121 Removed noValidate and added formNoValidate to readme 2015-04-14 21:31:41 +02:00
christianalfoni 54a857638a Release 0.12.0 2015-04-14 19:01:59 +02:00
Gabriel Neutzling a0bab16ca3 fixed equalsField validation rule. 2015-04-14 00:36:17 -03:00
christianalfoni 617cc21ee5 updated readme 2015-04-13 19:40:08 +02:00
christianalfoni 8b42fd254a Added string returns error for rules 2015-04-13 19:15:10 +02:00
christianalfoni c5bbc06178 Added missing pull 2015-04-13 18:43:22 +02:00
christianalfoni b0738a5032 Added validation objects and required validation 2015-04-13 18:29:23 +02:00
christianalfoni 5e00ea281f Passing invalidate on onValidSubmit and onInvalidSubmit 2015-04-13 18:29:22 +02:00
christianalfoni ad83a10894 Fixed bugs with isValidValue and isValidForm 2015-04-07 07:24:19 +02:00
christianalfoni 0964b07e1d Fixed validation bug 2015-04-03 13:20:17 +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
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
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
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
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
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
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