π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
fix: Input type number validation on estimate in create and update (#4917)
guru_sainatha554d8753194
diff --git a/web/core/components/estimates/points/create.tsx b/web/core/components/estimates/points/create.tsxindex 89a4dbaf35..0c05beaba9 100644--- a/web/core/components/estimates/points/create.tsx+++ b/web/core/components/estimates/points/create.tsx@@ -58,8 +58,10 @@ export const EstimatePointCreate: FC<TEstimatePointCreate> = observer((props) =>};const handleEstimateInputValue = (value: string) => {- setEstimateInputValue(value);- handleEstimatePointError && handleEstimatePointError(value, undefined);+ if (value.length <= MAX_ESTIMATE_POINT_INPUT_LENGTH) {+ setEstimateInputValue(value);+ handleEstimatePointError && handleEstimatePointError(value, undefined);+ }};const handleCreate = async (event: FormEvent<HTMLFormElement>) => {diff --git a/web/core/components/estimates/points/update.tsx b/web/core/components/estimates/points/update.tsxindex 747d2b64d6..cde02c2a0b 100644--- a/web/core/components/estimates/points/update.tsx+++ b/web/core/components/estimates/points/update.tsx@@ -63,8 +63,10 @@ export const EstimatePointUpdate: FC<TEstimatePointUpdate> = observer((props) =>};const handleEstimateInputValue = (value: string) => {- handleEstimatePointError && handleEstimatePointError(value, undefined);- setEstimateInputValue(() => value);+ if (value.length <= MAX_ESTIMATE_POINT_INPUT_LENGTH) {+ setEstimateInputValue(() => value);+ handleEstimatePointError && handleEstimatePointError(value, undefined);+ }};const handleUpdate = async (event: FormEvent<HTMLFormElement>) => {