Prevent manual typing to datetime field

This commit is contained in:
Otto Ahoniemi
2021-11-11 02:40:51 +02:00
parent 5f6ccb7ca7
commit b49a9891e4
@@ -77,6 +77,7 @@ const AssociateTagForm = ({ group, tagName, toggleEdit, selectFieldItems }) => {
dateFormat="YYYY"
timeFormat={false}
initialvalue={group.tags?.[tagName]}
inputProps={{ readOnly: true }}
renderYear={(props, selectableYear) => <td {...props}>{startYearToAcademicYear(selectableYear)}</td>}
renderInput={({ value, ...rest }) => {
return (