[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:
parent
676ec7e396
commit
cd540e9641
2 changed files with 2 additions and 8 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue