Hi,
I my app isValid returns false even when there are no errors in this.props.errors.
It gets invalidated if i put valid input into any field, once all fields are with valid inputs, isValid returns true. I want to disable button only if a field is invalid. If user enters valid i want to keep the button active.
<button type="submit" className={this.getButtonClasses()}>
Continue registration
</button>
getButtonClasses() {
return classnames({
'ui-btn': true,
'ui-btn__disabled': !this.props.isValid(),
})
}
Hi,
I my app isValid returns false even when there are no errors in this.props.errors.
It gets invalidated if i put valid input into any field, once all fields are with valid inputs, isValid returns true. I want to disable button only if a field is invalid. If user enters valid i want to keep the button active.