Skip to content

Commit

Permalink
Trigger SSH key validations when ssh field changes (#2519)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammont82 authored Mar 8, 2024
1 parent d4833e4 commit c34b6c7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions libs/ui-lib/lib/common/components/ui/formik/UploadField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,14 @@ const UploadField: React.FC<UploadFieldProps> = ({
type="text"
value={field.value as string}
filename={filename}
onDataChange={(_event, file: string) => setValue(file)}
onTextChange={(_event, file: string) => setValue(file)}
onDataChange={(_event, file: string) => {
setValue(file);
setTouched(true);
}}
onTextChange={(_event, file: string) => {
setValue(file);
setTouched(true);
}}
onFileInputChange={(_event, file) => {
setFilename(file.name);
setTouched(true);
Expand Down

0 comments on commit c34b6c7

Please sign in to comment.