Open birjj opened 6 years ago
While components can have their own validate functions, said methods have no way of getting the value passed to isValidValue.
validate
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 } // ... });
JSFiddle
While components can have their own
validate
functions, said methods have no way of getting the value passed toisValidValue
.JSFiddle