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