From 18e70b2700c1e11a8cd2601863cb56038060cdf5 Mon Sep 17 00:00:00 2001 From: Sudeep7353 <103890430+Sudeep7353@users.noreply.github.com> Date: Tue, 10 Dec 2024 12:31:18 +0530 Subject: [PATCH] MOSIP-37719 - Admin Devices List page. (#1008) * MOSIP-37719 - Admin Devices List page. Signed-off-by: sudeep * MOSIP-37719 - Admin Devices List page. Signed-off-by: sudeep --------- Signed-off-by: sudeep --- .../admin/deviceProviderServices/AdminDeviceDetailsFilter.js | 4 +++- pmp-revamp-ui/src/pages/common/fields/TextInputComponent.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pmp-revamp-ui/src/pages/admin/deviceProviderServices/AdminDeviceDetailsFilter.js b/pmp-revamp-ui/src/pages/admin/deviceProviderServices/AdminDeviceDetailsFilter.js index c45beea6..29220931 100644 --- a/pmp-revamp-ui/src/pages/admin/deviceProviderServices/AdminDeviceDetailsFilter.js +++ b/pmp-revamp-ui/src/pages/admin/deviceProviderServices/AdminDeviceDetailsFilter.js @@ -50,8 +50,10 @@ function AdminDeviceDetailsFilter({ onApplyFilter, setErrorCode, setErrorMsg}) { // Check if fieldName is 'deviceType' if (fieldName === 'deviceType') { + //clear deviceSubType dropdown data + setDeviceSubTypeDropdownData([]) + // return if no deviceType is selected if(selectedFilter === ""){ - setDeviceSubTypeDropdownData([]) return; } try { diff --git a/pmp-revamp-ui/src/pages/common/fields/TextInputComponent.js b/pmp-revamp-ui/src/pages/common/fields/TextInputComponent.js index a3663540..0bfce599 100644 --- a/pmp-revamp-ui/src/pages/common/fields/TextInputComponent.js +++ b/pmp-revamp-ui/src/pages/common/fields/TextInputComponent.js @@ -11,7 +11,7 @@ function TextInputComponent({ fieldName, fieldNameKey, placeHolderKey, textBoxVa const handleInputChange = (event) => { const newValue = event.target.value; setInputValue(newValue); - onTextChange(fieldName, newValue); + onTextChange(fieldName, newValue.trim()); }; const onTextClear = () => {