mirror of
https://github.com/makeplane/plane.git
synced 2026-02-11 08:39:05 -06:00
fix: Input type number validation on estimate in create and update (#4917)
This commit is contained in:
@@ -58,8 +58,10 @@ export const EstimatePointCreate: FC<TEstimatePointCreate> = observer((props) =>
|
||||
};
|
||||
|
||||
const handleEstimateInputValue = (value: string) => {
|
||||
setEstimateInputValue(value);
|
||||
handleEstimatePointError && handleEstimatePointError(value, undefined);
|
||||
if (value.length <= MAX_ESTIMATE_POINT_INPUT_LENGTH) {
|
||||
setEstimateInputValue(value);
|
||||
handleEstimatePointError && handleEstimatePointError(value, undefined);
|
||||
}
|
||||
};
|
||||
|
||||
const handleCreate = async (event: FormEvent<HTMLFormElement>) => {
|
||||
|
||||
@@ -63,8 +63,10 @@ export const EstimatePointUpdate: FC<TEstimatePointUpdate> = observer((props) =>
|
||||
};
|
||||
|
||||
const handleEstimateInputValue = (value: string) => {
|
||||
handleEstimatePointError && handleEstimatePointError(value, undefined);
|
||||
setEstimateInputValue(() => value);
|
||||
if (value.length <= MAX_ESTIMATE_POINT_INPUT_LENGTH) {
|
||||
setEstimateInputValue(() => value);
|
||||
handleEstimatePointError && handleEstimatePointError(value, undefined);
|
||||
}
|
||||
};
|
||||
|
||||
const handleUpdate = async (event: FormEvent<HTMLFormElement>) => {
|
||||
|
||||
Reference in New Issue
Block a user