[#239] refresh is triggered only on save (#329)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2025-11-18 10:41:58 +01:00
committed by GitHub
parent 1b3faff0b5
commit cb69455a9b
4 changed files with 42 additions and 40 deletions
+3 -3
View File
@@ -42,7 +42,7 @@ function EventPopover({
}: {
anchorEl: HTMLElement | null;
open: boolean;
onClose: (event: {}, reason: "backdropClick" | "escapeKeyDown") => void;
onClose: (refresh?: boolean) => void;
selectedRange: DateSelectArg | null;
setSelectedRange: Function;
calendarRef: React.RefObject<CalendarApi | null>;
@@ -564,7 +564,7 @@ function EventPopover({
);
const handleClose = () => {
onClose({}, "backdropClick");
onClose(false);
setShowValidationErrors(false);
resetAllStateToDefault();
setStart("");
@@ -656,7 +656,7 @@ function EventPopover({
setShowValidationErrors(false);
// Close popup immediately
onClose({}, "backdropClick");
onClose(true);
// Reset all state to default values
resetAllStateToDefault();