diff options
author | Projit Roy <projitr@aarnanetworks.com> | 2022-11-10 12:08:45 +0530 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2022-11-11 19:48:56 +0000 |
commit | 2e9b8d54ea0db08912ce58eb400936df09cfe8b0 (patch) | |
tree | 4a948a2c0a54849a15af9a3d63a8054705b9860a /sdnr | |
parent | 18a3e30d7e6f4b317a6df93998eb39fb2a0578ad (diff) |
SDNR GUI has a problem editing fields which allow negative numbers
Issue-ID: CCSDK-3791
Signed-off-by: Projit Roy <projitr@aarnanetworks.com>
Change-Id: I2d96d853ac2c791979d619da4ec522cdefb921be
Diffstat (limited to 'sdnr')
-rw-r--r-- | sdnr/wt/odlux/apps/configurationApp/src/components/uiElementNumber.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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<number>; +type numberInputProps = BaseProps<any>; 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 ( |