From 490e851b64ed22e837b0926612805112505e2c92 Mon Sep 17 00:00:00 2001 From: Sudeep7353 <103890430+Sudeep7353@users.noreply.github.com> Date: Wed, 8 Jan 2025 11:36:00 +0530 Subject: [PATCH] MOSIP-38671 : PMS-Revamp - An incorrect error message, "Could not process the request," appears when the Enter key is pressed after entering details in the Create Policy Group page. (#1069) * MOSIP-38671 : An incorrect error message, 'Could not process the request' appears when the Enter key is pressed after entering details in the Create Policy Group page. Signed-off-by: sudeep * MOSIP-38671 : An incorrect error message, 'Could not process the request' appears when the Enter key is pressed after entering details in the Create Policy Group page. Signed-off-by: sudeep --------- Signed-off-by: sudeep --- .../src/pages/admin/policyManager/CreatePolicyGroup.js | 2 +- pmp-revamp-ui/src/utils/AppUtils.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pmp-revamp-ui/src/pages/admin/policyManager/CreatePolicyGroup.js b/pmp-revamp-ui/src/pages/admin/policyManager/CreatePolicyGroup.js index 9e8371a7..05f15a0c 100644 --- a/pmp-revamp-ui/src/pages/admin/policyManager/CreatePolicyGroup.js +++ b/pmp-revamp-ui/src/pages/admin/policyManager/CreatePolicyGroup.js @@ -187,7 +187,7 @@ function CreatePolicyGroup() {
-
diff --git a/pmp-revamp-ui/src/utils/AppUtils.js b/pmp-revamp-ui/src/utils/AppUtils.js index 7f9256ea..8f798438 100644 --- a/pmp-revamp-ui/src/utils/AppUtils.js +++ b/pmp-revamp-ui/src/utils/AppUtils.js @@ -89,6 +89,7 @@ export const getGrantTypes = (type, t) => { export const onPressEnterKey = (e, action) => { if (e.key === 'Enter') { + e.preventDefault(); return action(); } }