mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
Prevent manual typing to datetime field
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user