Skip to content

Commit

Permalink
Trigger SSH key validations when ssh field changes (#2519) (#2529)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammont82 authored Mar 20, 2024
1 parent 408d712 commit 20c52b0
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 20c52b0

Please sign in to comment.