remove linked fields from validation loop

All linked fields are initially valid. All unlinked fields
are initially valid.
This commit is contained in:
Jake McDermott
2019-03-27 08:47:30 -04:00
parent 7a093de9fd
commit b90f9ac401
2 changed files with 6 additions and 0 deletions

View File

@@ -230,6 +230,8 @@ function AddEditCredentialsController (
vm.form[field].asTag = false;
vm.form[field]._value = '';
vm.form[field]._tagValue = '';
vm.form[field]._isValid = true;
vm.form[field]._rejected = false;
vm.inputSources.items = vm.inputSources.items
.filter(({ input_field_name }) => input_field_name !== field);
vm.inputSources.changedInputFields.push(field);