fix: WorkTimeTable input fixed
This commit is contained in:
@@ -124,17 +124,16 @@ const useWorkTableColumns = ({
|
||||
<Input
|
||||
component={IMaskInput}
|
||||
mask="00:00"
|
||||
// key={row.original.name + date.date().toString()}
|
||||
onChange={event =>
|
||||
/^\d\d:\d\d$/.test(event.currentTarget.value) &&
|
||||
onAccept={value => {
|
||||
return /^\d\d:\d\d$/.test(value) &&
|
||||
onUpdate(
|
||||
date.toDate(),
|
||||
row.original.userId,
|
||||
event.currentTarget.value,
|
||||
)
|
||||
}
|
||||
value,
|
||||
);
|
||||
}}
|
||||
styles={{ input: { textAlign: "center" } }}
|
||||
value={formatValue(cell.renderValue() as number)}
|
||||
defaultValue={formatValue(cell.renderValue())}
|
||||
/>
|
||||
</Flex>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user