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 89be8ab commit b1477e2Copy full SHA for b1477e2
daterangepicker.js
@@ -422,6 +422,11 @@
422
var start = moment(dateString[0], this.format);
423
var end = moment(dateString[1], this.format);
424
425
+ if (this.singleDatePicker) {
426
+ start = moment(this.element.val(), this.format);
427
+ end = start;
428
+ }
429
+
430
if (start == null || end == null) return;
431
if (end.isBefore(start)) return;
432
@@ -450,7 +455,7 @@
450
455
left: this.parentEl.offset().left - this.parentEl.scrollLeft()
451
456
};
452
457
}
453
-
458
454
459
if (this.opens == 'left') {
460
this.container.css({
461
top: this.element.offset().top + this.element.outerHeight() - parentOffset.top,
@@ -973,4 +978,4 @@
973
978
return this;
974
979
975
980
976
-}(window.jQuery);
981
+}(window.jQuery);
0 commit comments