Commit Graph

22 Commits

Author SHA1 Message Date
christianalfoni 785ac0ca54 Fixed equalsField rule 2015-04-14 08:10:48 +02:00
christianalfoni b0738a5032 Added validation objects and required validation 2015-04-13 18:29:23 +02:00
christianalfoni ad83a10894 Fixed bugs with isValidValue and isValidForm 2015-04-07 07:24:19 +02:00
christianalfoni 8cbd6e19ff added internal validation 2015-04-01 13:59:52 +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 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
Philipp Otto 0d34e7b5bb Allow a component to decide whether it is valid (fixes #60) 2015-03-23 00:16:05 +01: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
christianalfoni 86aec656df Fixed dynamic validations, disable form, dynamic value update etc. 2015-03-07 12:51:15 +01:00
Hana Wang 9ef8590f80 Actually check for invalid floats 2015-02-26 04:59:19 -08:00
Hana Wang a65b2943b0 Allow floats for isNumeric 2015-02-25 10:35:30 -08:00
christianalfoni 385263c383 Merged two pull requests 2015-02-23 08:55:36 +01:00
Christian Alfoni bbc6ad38e2 Merge pull request #27 from sdemjanenko/update_pristine_values_on_model
Update form's model if the input is pristine and its value changes; test
2015-02-23 07:39:23 +01:00
Stephen Demjanenko 03bc5a4079 Update form's model if the input is pristine and its value changes; test
This fixes a case where a form initializes with default values loaded
from the server.  If an update comes in from the server and the user has
not touched the field (its pristine) then update the field's value.

This feature will help track if the user has actually made any changes
from the default value that the form was/would have been initialized
with.
2015-02-21 13:00:26 -08:00
Stephen Demjanenko e9310002d1 registerInputs: Support null/undefined children; add test
A lot of react examples have rendering functions which early return null
(such as a closed dropdown).  This method was erroring in that case.
2015-02-21 12:16:46 -08:00
Christian Alfoni 86ba085cc4 onChange, dynamic form elements and bug fix 2015-02-03 15:03:55 +01:00
Christian Alfoni 15b6df9526 Pristine, mapping and tests 2015-01-21 15:16:27 +01:00