We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa94a5b commit f1b6765Copy full SHA for f1b6765
src/datetime-range.js
@@ -35,6 +35,7 @@ angular.module('g1b.datetime-range', []).
35
if ( scope.selected.isSame(date) ) { return; }
36
if ( ( scope.selected === scope.start && date < scope.end ) || ( scope.selected === scope.end && date > scope.start ) ) {
37
scope.selected.year(date.year()).month(date.month()).date(date.date()).hours(date.hours()).minutes(date.minutes()).seconds(date.seconds());
38
+ scope.calendar = scope.selected.clone();
39
scope.handler();
40
} else {
41
scope.warning = ( scope.selected === scope.start ) ? 'end' : 'start';
0 commit comments