Closed danielweinmann closed 8 years ago
Hello, thank you for your work Daniel, i'm currently traveling so I can not merge easily. I added you as collaborator, do you have a NPM account?
Thanks! If you don't mind I'll still send PRs just for you to check the code before I merge it...is it ok with you?
Just created npm account: also danielweinmann ;)
Sure, I published 0.0.3
The onValidation doesn't work with SelectWidget. I have a validator on the SelectWidget itself, but the _validate method in WidgetMixin iterates over the individual OptionWidgets and doesn't fire because there are no validators on any of the options.
Now you can pass an onValidation prop to GiftedForm and it will run on every change of every widget.
If you don't pass it it does not validate, so we don't have worry about performance. Here is an example that solves @ScandyMark's #6: