Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-5863] fix: estimate point input validation #8492

Anmol Singh Bhatia55e89cb8fcd8
diff --git a/apps/web/core/components/estimates/inputs/number-input.tsx b/apps/web/core/components/estimates/inputs/number-input.tsx
index 24e9d7a2bb..6f898dfa7d 100644
--- a/apps/web/core/components/estimates/inputs/number-input.tsx
+++ b/apps/web/core/components/estimates/inputs/number-input.tsx
@@ -24,7 +24,7 @@ export function EstimateNumberInput(props: TEstimateNumberInputProps) {
className="border-none focus:ring-0 focus:border-0 focus:outline-none px-2 py-2 w-full bg-transparent text-13"
placeholder={t("project_settings.estimates.create.enter_estimate_point")}
autoFocus
- type="number"
+ step="any"
/>
);
}
diff --git a/apps/web/core/components/estimates/inputs/root.tsx b/apps/web/core/components/estimates/inputs/root.tsx
index ac7a03cc41..1c38f41cfe 100644
--- a/apps/web/core/components/estimates/inputs/root.tsx
+++ b/apps/web/core/components/estimates/inputs/root.tsx
@@ -27,7 +27,7 @@ export function EstimateInputRoot(props: TEstimateInputRootProps) {
case EEstimateSystem.POINTS:
return (
<EstimateNumberInput
- value={value ? parseInt(value) : undefined}
+ value={value ? parseFloat(value) : undefined}
handleEstimateInputValue={handleEstimateInputValue}
/>
);