[WEB-5863] fix: estimate point input validation #8492
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
parent
4d1e6c499f
commit
55e89cb8fc
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
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")}
|
placeholder={t("project_settings.estimates.create.enter_estimate_point")}
|
||||||
autoFocus
|
autoFocus
|
||||||
type="number"
|
step="any"
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ export function EstimateInputRoot(props: TEstimateInputRootProps) {
|
||||||
case EEstimateSystem.POINTS:
|
case EEstimateSystem.POINTS:
|
||||||
return (
|
return (
|
||||||
<EstimateNumberInput
|
<EstimateNumberInput
|
||||||
value={value ? parseInt(value) : undefined}
|
value={value ? parseFloat(value) : undefined}
|
||||||
handleEstimateInputValue={handleEstimateInputValue}
|
handleEstimateInputValue={handleEstimateInputValue}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue