Custom validate cannot be used with isValidValue
Opened this issue · 0 comments
birjj commented
While components can have their own validate
functions, said methods have no way of getting the value passed to isValidValue
.
const MyOwnInput = React.createClass({
mixins: [Formsy.Mixin],
validate() { return !!this.getValue(); },
test() {
console.log(this.isValidValue(0)); // false
console.log(this.isValidValue(1)); // false - should be true
}
// ...
});