Commit Graph

15 Commits

Author SHA1 Message Date
Semigradsky 7ab78f9603 Moved tests to es2015 2015-09-09 12:45:44 +03:00
christianalfoni dd52595dd9 added webpack and jasmine node tests 2015-04-24 09:46:33 +02:00
christianalfoni b0738a5032 Added validation objects and required validation 2015-04-13 18:29:23 +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
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
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