Skip to content

Commit

Permalink
date readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
pirupius committed Sep 26, 2024
1 parent 05dcd6d commit fea4fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/inputs/date/date.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const DateField: React.FC<FormFieldInputProps> = ({ field, value: dateValue, err
[field.datePickerFormat, field.label, t],
);

return sessionMode == 'view' || sessionMode == 'embedded-view' ? (
return sessionMode == 'view' || sessionMode == 'embedded-view' || isTrue(field.readonly) ? (
<FieldValueView
label={t(field.label)}
value={dateValue instanceof Date ? formatDateAsDisplayString(field, dateValue) : dateValue}
Expand Down

0 comments on commit fea4fb8

Please sign in to comment.