From 1215036d8956b75a7c3a89042df7bdc3470576fd Mon Sep 17 00:00:00 2001 From: stacksmash76 <98354295+stacksmash76@users.noreply.github.com> Date: Sun, 10 Sep 2023 17:50:24 +0200 Subject: [PATCH] fix(web): actions ratio limit support decimal values (#1100) fix(web): make NumberField support decimal values --- web/src/components/inputs/input.tsx | 12 +++++++++--- web/src/screens/filters/Action.tsx | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/web/src/components/inputs/input.tsx b/web/src/components/inputs/input.tsx index 6ec51a2..cf795fe 100644 --- a/web/src/components/inputs/input.tsx +++ b/web/src/components/inputs/input.tsx @@ -609,6 +609,7 @@ interface NumberFieldProps { min?: number; max?: number; tooltip?: JSX.Element; + isDecimal?: boolean; } export const NumberField = ({ @@ -620,7 +621,8 @@ export const NumberField = ({ max, tooltip, disabled, - required + required, + isDecimal }: NumberFieldProps) => (