Skip to content

Commit

Permalink
Merge pull request #772 from sgratch/editModal-update-helptext-when-v…
Browse files Browse the repository at this point in the history
…alueChanged

Enhance EditModal to refresh the helperText field value based on validationHook result
  • Loading branch information
yaacov authored Nov 7, 2023
2 parents 9a79f63 + 3485608 commit 0faeeeb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const EditModal: React.FC<EditModalProps> = ({
label={label}
labelIcon={LabelIcon}
fieldId="modal-with-form-form-field"
helperText={helperText}
helperText={validation.helperText ? validation.helperText : helperText}
helperTextInvalid={validation.helperText}
validated={validation.validated}
>
Expand Down

0 comments on commit 0faeeeb

Please sign in to comment.