summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorProjit Roy <projitr@aarnanetworks.com>2022-11-10 11:06:09 +0530
committerProjit Roy <projitr@aarnanetworks.com>2022-11-10 09:15:06 +0000
commit86c5b57717deadbb76ac8d7dc0be4e78425f26bf (patch)
tree0b19487e5d046f76b573a775a584cda2a13614a3
parent9b0742cc4b23a75492b76f9bfd7615e054014aef (diff)
SDNR GUI is unable to display values of fields with enum type from drop down
Issue-ID: CCSDK-3790 Signed-off-by: Projit Roy <projitr@aarnanetworks.com> Change-Id: I34f6ad1965e21bcdfeb8648f8d979cbf0583d023
-rw-r--r--sdnr/wt/odlux/apps/configurationApp/src/components/uiElementSelection.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementSelection.tsx b/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementSelection.tsx
index 7ca9ae36b..fdf803419 100644
--- a/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementSelection.tsx
+++ b/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementSelection.tsx
@@ -28,8 +28,8 @@ export const UiElementSelection = (props: selectionProps) => {
const element = props.value as ViewElementSelection;
let error = "";
- const value = String(props.inputValue).toLowerCase();
- if (element.mandatory && !!value) {
+ const value = String(props.inputValue);
+ if (element.mandatory && Boolean(!value)) {
error = "Error";
}
@@ -42,7 +42,7 @@ export const UiElementSelection = (props: selectionProps) => {
onChange={(e) => { props.onChange(e.target.value as string) }}
readOnly={props.readOnly}
disabled={props.disabled}
- value={value.toString().toLowerCase()}
+ value={value.toString()}
aria-label={element.label+'-selection'}
inputProps={{
name: element.id,