diff --git a/src/app/degree-planner/saved-for-later-container/saved-for-later-container.component.ts b/src/app/degree-planner/saved-for-later-container/saved-for-later-container.component.ts index e986efa216927af229a9cb5df14ed685e5b19e51..b4d754dcc81089085a9fb9f48aa534458e5b9b69 100644 --- a/src/app/degree-planner/saved-for-later-container/saved-for-later-container.component.ts +++ b/src/app/degree-planner/saved-for-later-container/saved-for-later-container.component.ts @@ -51,6 +51,8 @@ export class SavedForLaterContainerComponent implements OnInit { const fromTerm = previousContainerId.indexOf('term-') === 0; const fromDifferentContainer = newContainerId !== previousContainerId; + this.hasItemDraggedOver = false; + if (fromDifferentContainer && fromTerm) { const course = event.item.data as Course; diff --git a/src/app/degree-planner/term-container/term-container.component.ts b/src/app/degree-planner/term-container/term-container.component.ts index b21a889f0bc4ec54861dd5c42baa76bf7b27d4e5..5fa568dbddf7c6869994bb08505cc901ba9db605 100644 --- a/src/app/degree-planner/term-container/term-container.component.ts +++ b/src/app/degree-planner/term-container/term-container.component.ts @@ -225,6 +225,8 @@ export class TermContainerComponent implements OnInit, OnDestroy { course => course.courseId === courseId, ); + this.hasItemDraggedOver = false; + if (newContainer !== previousContainer && isCourseInPlannedCourses) { this.dialog .open(ConfirmDialogComponent, {