diff --git a/epictrack-web/src/components/workPlan/event/EventForm.tsx b/epictrack-web/src/components/workPlan/event/EventForm.tsx index 2c16922f9..0dba3c640 100644 --- a/epictrack-web/src/components/workPlan/event/EventForm.tsx +++ b/epictrack-web/src/components/workPlan/event/EventForm.tsx @@ -144,10 +144,15 @@ const EventForm = ({ }), [selectedConfiguration, actualAdded] ); - const disableAnticipatedDate = Boolean( - selectedConfiguration?.id && - selectedWorkPhase?.work_phase.legislated && - selectedConfiguration?.event_position === EventPosition.END + const disableAnticipatedDate = useMemo( + () => + isFormFieldsLocked || + Boolean( + selectedConfiguration?.id && + selectedWorkPhase?.work_phase.legislated && + selectedConfiguration?.event_position === EventPosition.END + ), + [selectedConfiguration, selectedWorkPhase] ); const isHighPriorityActive = useMemo(() => { if (event) { @@ -709,6 +714,7 @@ const EventForm = ({ {actualDateLabel}