Matija Marohnić
977bf7caaf
Fix React warnings in tests
2015-07-24 18:23:24 +02:00
Semigradsky
9db2b9fccf
Fix tests
2015-06-23 12:55:12 +03:00
Semigradsky
0395f61233
Changed validation behaviour
2015-06-03 13:10:02 +03:00
christianalfoni
a1cf2236df
Prepared new release
2015-05-22 14:46:45 +02:00
christianalfoni
23f91c4373
Pull request for isChanged
2015-05-22 13:21:03 +02: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
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
8acaeadaee
Fixed value bug and configured deploy new version script
2015-04-25 12:14:15 +02:00
christianalfoni
dd52595dd9
added webpack and jasmine node tests
2015-04-24 09:46:33 +02:00
Semigradsky
b18b4e8c79
Clean up
2015-04-22 19:06:53 +03: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
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