From 128f0523add26505428ff982adc5e9fdbba4a90f Mon Sep 17 00:00:00 2001 From: Rushikesh-Sonawane99 Date: Wed, 5 Jun 2024 11:08:41 +0530 Subject: [PATCH] Issue #PS-#220096 chore: Fixed on enter refresh issue for search functionality --- src/pages/attendance-history.tsx | 4 ++++ src/pages/attendance-overview.tsx | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pages/attendance-history.tsx b/src/pages/attendance-history.tsx index 4ff16454..c23ba279 100644 --- a/src/pages/attendance-history.tsx +++ b/src/pages/attendance-history.tsx @@ -664,6 +664,10 @@ const UserAttendanceHistory = () => { { + event.preventDefault(); + handleSearchSubmit(); + }} sx={{ display: 'flex', alignItems: 'center', diff --git a/src/pages/attendance-overview.tsx b/src/pages/attendance-overview.tsx index 91df2c6c..1fd0510a 100644 --- a/src/pages/attendance-overview.tsx +++ b/src/pages/attendance-overview.tsx @@ -707,10 +707,13 @@ const AttendanceOverview: React.FC = () => { { + event.preventDefault(); + handleSearchSubmit(); + }} sx={{ display: 'flex', alignItems: 'center', - borderRadius: '100px', background: theme.palette.warning.A700, boxShadow: 'none',