Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fix(onDateRangeSelect): fix behaviour after bug was introduced in pre…

…vious commit
  • Loading branch information...
Matt Lewis
Matt Lewis committed Jul 27, 2016
1 parent ea49132 commit e0c260cf728c5802d26bf8b2ae6ba4488bdc9349
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/directives/mwlCalendarHourList.js
@@ -61,7 +61,7 @@ angular
};

vm.getClickedDate = function(baseDate, minutes, days) {
return moment(baseDate).clone().add(minutes, 'minutes').add(days || 0, 'days').toDate();
return moment(baseDate).clone().startOf('hour').add(minutes, 'minutes').add(days || 0, 'days').toDate();
};

vm.onDragSelectStart = function(date, dayIndex) {

0 comments on commit e0c260c

Please sign in to comment.
You can’t perform that action at this time.