[WEB-1908] chore: update input type number validation to type text in estimate input form (#5086)

* chore: removed input type number validation in estimate input form

* chore: removed pattern
This commit is contained in:
guru_sainath
2024-07-09 15:31:12 +05:30
committed by GitHub
parent 676ec7e396
commit cd540e9641
2 changed files with 2 additions and 8 deletions

View File

@@ -152,11 +152,8 @@ export const EstimatePointCreate: FC<TEstimatePointCreate> = 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",
maxlength: MAX_ESTIMATE_POINT_INPUT_LENGTH,
};

View File

@@ -160,11 +160,8 @@ export const EstimatePointUpdate: FC<TEstimatePointUpdate> = 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",
maxlength: MAX_ESTIMATE_POINT_INPUT_LENGTH,
};