Skip to content

Commit 1f06ec2

Browse files
committed
add option to not redraw after selecting date
1 parent d55f141 commit 1f06ec2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lightpick.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
tooltipNights: false,
5555
orientation: 'auto',
5656
disableWeekends: false,
57+
dontRedrawAfterSelect: false,
5758
inline: false,
5859
dropdowns: {
5960
years: {
@@ -574,7 +575,7 @@
574575
self.hide();
575576
}, 100);
576577
}
577-
else if (!opts.singleDate || opts.inline) {
578+
else if (!opts.dontRedrawAfterSelect && (!opts.singleDate || opts.inline)) {
578579
updateDates(self.el, opts);
579580
}
580581
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lightpick",
3-
"version": "1.3.5",
3+
"version": "1.3.6",
44
"description": "Javascript date range picker - lightweight, no jQuery",
55
"main": "lightpick.js",
66
"scripts": {

0 commit comments

Comments
 (0)