Skip to content

Commit

Permalink
fix(day-view): set allDay to false when dragging events
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlewis92 committed Oct 25, 2018
1 parent ea8bfcf commit c4c8bd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@ export class CalendarDayViewComponent implements OnChanges, OnInit, OnDestroy {
newStart,
newEnd,
event: dayEvent.event,
type: CalendarEventTimesChangedEventType.Drag
type: CalendarEventTimesChangedEventType.Drag,
allDay: false
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,8 @@ describe('CalendarDayViewComponent component', () => {
newEnd: moment('2016-06-27')
.add(6, 'hours')
.add(30, 'minutes')
.toDate()
.toDate(),
allDay: false
});
expect(eventDropped).to.have.been.calledOnce;
});
Expand Down Expand Up @@ -1062,7 +1063,8 @@ describe('CalendarDayViewComponent component', () => {
newEnd: moment('2016-06-27')
.add(6, 'hours')
.subtract(30, 'minutes')
.toDate()
.toDate(),
allDay: false
});
});

Expand Down Expand Up @@ -1246,7 +1248,8 @@ describe('CalendarDayViewComponent component', () => {
newEnd: moment('2016-06-27')
.add(6, 'hours')
.add(10, 'minutes')
.toDate()
.toDate(),
allDay: false
});
});

Expand Down

0 comments on commit c4c8bd5

Please sign in to comment.