mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 05:49:40 +02:00
chore: estimate input type validation in estimate switch
This commit is contained in:
@@ -152,11 +152,9 @@ 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",
|
||||
pattern: undefined,
|
||||
maxlength: MAX_ESTIMATE_POINT_INPUT_LENGTH,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user