Skip to content

Commit

Permalink
UPDATE: to show value on date picker
Browse files Browse the repository at this point in the history
Co-authored-by: andregroseth <[email protected]>
  • Loading branch information
JeremiahUy and andregroseth committed Nov 6, 2024
1 parent 5799cac commit 3f8c065
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/frontend/src/components/common/Inputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,12 @@ export const DateField = (props: TPropsDateField) => {
} else fieldProps.form.setFieldValue(name, undefined)
}}
>
<DatePicker.Input {...inputProps} label="Velg dato" />
<DatePicker.Input
className="mb-2"
{...inputProps}
value={fieldProps.form.values[name]}
label="Velg dato"
/>
</DatePicker>
)}
</Field>
Expand Down

0 comments on commit 3f8c065

Please sign in to comment.