From 56206eb204cb7f597402d21905c69d5df0ffcc85 Mon Sep 17 00:00:00 2001 From: gurusainath Date: Tue, 9 Jul 2024 15:08:18 +0530 Subject: [PATCH] chore: estimate input type validation in estimate switch --- web/core/components/estimates/points/create.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web/core/components/estimates/points/create.tsx b/web/core/components/estimates/points/create.tsx index 0c05beaba9..668aaba85d 100644 --- a/web/core/components/estimates/points/create.tsx +++ b/web/core/components/estimates/points/create.tsx @@ -152,11 +152,9 @@ export const EstimatePointCreate: FC = observer((props) => }; // derived values - const inputFieldType = - estimateType && [(EEstimateSystem.TIME, EEstimateSystem.POINTS)].includes(estimateType) ? "number" : "text"; const inputProps = { - type: inputFieldType, - pattern: inputFieldType === "number" ? "[0-9]*" : undefined, + type: "text", + pattern: undefined, maxlength: MAX_ESTIMATE_POINT_INPUT_LENGTH, };