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);