Hi. I've special validation case. Literally we should not allow to submit form if component marked as Claimed, while the value was not changed.
Next code, works fine, it's check if this field is claimed, marks it's as invalid and trigger related error msg. But it's works only visually, user can submit this form despite that was not changed=invalid.
I tried all possible ways to achieve this result and didn't get success. makeInvalid etc seems that not working, because this.validate() overwrite isValid state on form submit.
Is it possible somehow extend/override validate() method to prevent from submit when it's not valid based on custom rule?
Hi. I've special validation case. Literally we should not allow to submit form if component marked as Claimed, while the value was not changed.
Next code, works fine, it's check if this field is claimed, marks it's as invalid and trigger related error msg. But it's works only visually, user can submit this form despite that was not changed=invalid.
I tried all possible ways to achieve this result and didn't get success. makeInvalid etc seems that not working, because this.validate() overwrite isValid state on form submit. Is it possible somehow extend/override validate() method to prevent from submit when it's not valid based on custom rule?