VAULT-13192 only validate form on submit instead of onChange (#19004)

This commit is contained in:
Kianna 2023-02-06 10:10:23 -08:00 committed by GitHub
parent e873932bce
commit 809757ac69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -5,13 +5,7 @@
</h2>
{{#each this.defaultFields as |field|}}
{{#let (find-by "name" field @model.allFields) as |attr|}}
<FormField
@attr={{attr}}
@model={{@model}}
@modelValidations={{this.modelValidations}}
@onChange={{this.checkFormValidity}}
data-test-field
>
<FormField @attr={{attr}} @model={{@model}} @modelValidations={{this.modelValidations}} data-test-field>
{{#if (eq field "customTtl")}}
{{! customTtl attr has editType yield, which will render this }}
<PkiNotValidAfterForm @attr={{attr}} @model={{@model}} />