From 3df289b557860d44f184e379e145ddc7dd848917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esa=C3=BA=20Morais?= <55207584+esau-morais@users.noreply.github.com> Date: Thu, 16 Feb 2023 17:42:41 -0300 Subject: [PATCH] fix(schedule): close on click #7143 (#7148) --- packages/features/schedules/components/Schedule.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/features/schedules/components/Schedule.tsx b/packages/features/schedules/components/Schedule.tsx index 91ad0c549b..271be2ba32 100644 --- a/packages/features/schedules/components/Schedule.tsx +++ b/packages/features/schedules/components/Schedule.tsx @@ -117,6 +117,7 @@ const CopyButton = ({ disabled={parseInt(getValuesFromDayRange.replace(fieldArrayName + ".", ""), 10)} onClick={(selected) => { selected.forEach((day) => setValue(`${fieldArrayName}.${day}`, getValues(getValuesFromDayRange))); + setOpen(false); }} onCancel={() => setOpen(false)} />