flatpickr 2.3.6.0 → 2.3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flatpickr/version.rb +1 -1
- data/vendor/assets/javascripts/flatpickr.js +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1d7c0f31ea2d41c687a7b5d5cc68a588235cfb1
|
4
|
+
data.tar.gz: f5f653cdfabc93859149399eba4f735b22f5cb80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85fe339777a71018008083ea3ab19e5f2e3d07c05ac19e820d064b57124d70701abc8f764329be25b65875e94c79427f2cabbdf6eeb6fe05924b6bac1416fb31
|
7
|
+
data.tar.gz: be6ac37a8293a77fcedd3fd6690242f7408dc21d563017e1673ca7f7b6e5562ab12b12061774b99c61a1d7ee5278862f4f9724486cc825eed89298202dc25996
|
data/lib/flatpickr/version.rb
CHANGED
@@ -2,7 +2,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
2
2
|
|
3
3
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
4
4
|
|
5
|
-
/*! flatpickr v2.3.
|
5
|
+
/*! flatpickr v2.3.7, @license MIT */
|
6
6
|
function Flatpickr(element, config) {
|
7
7
|
var self = this;
|
8
8
|
|
@@ -847,6 +847,7 @@ function Flatpickr(element, config) {
|
|
847
847
|
return function (date) {
|
848
848
|
var dateObj = self.config["_" + type + "Date"] = self.parseDate(date);
|
849
849
|
var inverseDateObj = self.config["_" + (type === "min" ? "max" : "min") + "Date"];
|
850
|
+
var isValidDate = date && dateObj instanceof Date;
|
850
851
|
|
851
852
|
if (self.selectedDates) {
|
852
853
|
self.selectedDates = self.selectedDates.filter(isEnabled);
|
@@ -855,12 +856,12 @@ function Flatpickr(element, config) {
|
|
855
856
|
|
856
857
|
if (self.days) redraw();
|
857
858
|
|
858
|
-
if (
|
859
|
+
if (isValidDate) {
|
859
860
|
self[type + "DateHasTime"] = dateObj.getHours() || dateObj.getMinutes() || dateObj.getSeconds();
|
860
861
|
}
|
861
862
|
|
862
863
|
if (self.currentYearElement) {
|
863
|
-
if (
|
864
|
+
if (isValidDate) self.currentYearElement[type] = dateObj.getFullYear();else self.currentYearElement.removeAttribute(type);
|
864
865
|
|
865
866
|
self.currentYearElement.disabled = inverseDateObj && dateObj && inverseDateObj.getFullYear() === dateObj.getFullYear();
|
866
867
|
}
|