codestar-framework icon indicating copy to clipboard operation
codestar-framework copied to clipboard

[Feature Request] problem between invisible field and validating

Open KotoriK opened this issue 3 years ago • 0 comments

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

  1. Pass the result of 'dependency' to validate function
  2. ignore invisible field while validating

KotoriK avatar Feb 18 '22 15:02 KotoriK