codestar-framework
codestar-framework copied to clipboard
[Feature Request] problem between invisible field and validating
Problem
Fields which are invisible (because conditions in 'dependency' are not passed) will still be validated when submitted, and user will be mentioned by showing an error icon on the Tab. It will be confused because user cannot find out which field lead to this problem because it is invisible.
Possible solution
- Pass the result of 'dependency' to validate function
- ignore invisible field while validating