mirror of
https://github.com/makeplane/plane.git
synced 2025-12-25 16:19:43 +01:00
[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:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user