From fa878642b6ab0b7c9018d3bf30a02a5e7247b027 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Fri, 29 Aug 2025 12:03:47 +0530 Subject: [PATCH] The calendar icon should display correctly when we increase the zoom. --- src/components/Employee/EmpAttendance.jsx | 2 +- src/components/common/DateRangePicker.jsx | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/Employee/EmpAttendance.jsx b/src/components/Employee/EmpAttendance.jsx index b8ff8b83..26ae9531 100644 --- a/src/components/Employee/EmpAttendance.jsx +++ b/src/components/Employee/EmpAttendance.jsx @@ -126,7 +126,7 @@ const EmpAttendance = ({ employee }) => { className="dataTables_length text-start py-2 d-flex justify-content-between " id="DataTables_Table_0_length" > -
+
{ + if (inputRef.current) { + inputRef.current._flatpickr.open(); // directly opens flatpickr + } + }; + return (
@@ -77,7 +83,7 @@ export const DateRangePicker1 = ({ className = "", allowText = false, resetSignal, - defaultRange = true, + defaultRange = true, ...rest }) => { const inputRef = useRef(null);