From: Projit Roy Date: Thu, 10 Nov 2022 06:38:45 +0000 (+0530) Subject: SDNR GUI has a problem editing fields which allow negative numbers X-Git-Tag: 1.5.0~9 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=2e9b8d54ea0db08912ce58eb400936df09cfe8b0;p=ccsdk%2Ffeatures.git SDNR GUI has a problem editing fields which allow negative numbers Issue-ID: CCSDK-3791 Signed-off-by: Projit Roy Change-Id: I2d96d853ac2c791979d619da4ec522cdefb921be --- diff --git a/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementNumber.tsx b/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementNumber.tsx index c4816686a..76c11f6e5 100644 --- a/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementNumber.tsx +++ b/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementNumber.tsx @@ -23,7 +23,7 @@ import { BaseProps } from "./baseProps"; import { IfWhenTextInput } from "./ifWhenTextInput"; import { checkRange } from "./verifyer"; -type numberInputProps = BaseProps; +type numberInputProps = BaseProps; export const UiElementNumber = (props: numberInputProps) => { @@ -49,7 +49,7 @@ export const UiElementNumber = (props: numberInputProps) => { setError(true); setHelperText("Input is not a number."); } - props.onChange(num); + props.onChange(data); } return (