From 7deab443ad6a43de08f6817e91ac8a77b3fd42ed Mon Sep 17 00:00:00 2001 From: Shubham Vaidya Date: Fri, 9 Aug 2024 21:53:49 +0530 Subject: [PATCH] fix: change handleChange function (#262) causing issue while selecting values from selectList component https://github.com/eclipse-tractusx/portal-shared-components/issues/256 --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/components/basic/SelectList/index.tsx | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c2cc8c9..d3c4e443 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 3.0.33 + +- updated the condition in handleChange in selectList component + ## 3.0.32 - Updated SearchInput component with debounce functionality diff --git a/package.json b/package.json index 4fa42a03..9bac4965 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@catena-x/portal-shared-components", - "version": "3.0.32", + "version": "3.0.33", "description": "Catena-X Portal Shared Components", "author": "Catena-X Contributors", "license": "Apache-2.0", diff --git a/src/components/basic/SelectList/index.tsx b/src/components/basic/SelectList/index.tsx index a6b012dc..036e0ca5 100644 --- a/src/components/basic/SelectList/index.tsx +++ b/src/components/basic/SelectList/index.tsx @@ -73,7 +73,7 @@ export const SelectList = ({ // eslint-disable-next-line const handleChange = (newValue: any) => { - if (newValue.target.value) { + if (newValue) { setSelected(newValue) onChangeItem(newValue) }