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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ec5c513e3b203ac4cb6deb7218de1b935f0b147
4
- data.tar.gz: 83e591cb2c2fa3dc96dc71ded71655392119a9ec
3
+ metadata.gz: f1d7c0f31ea2d41c687a7b5d5cc68a588235cfb1
4
+ data.tar.gz: f5f653cdfabc93859149399eba4f735b22f5cb80
5
5
  SHA512:
6
- metadata.gz: 413a34ee587f20c3cd1a3c62bf2af2c9f60d2dd63f4c83b79874fff1f043710c9c0549a948dd37b88067d788ec25d70aebd1aa9f1cc19a07fe52c0a1251467a5
7
- data.tar.gz: 5af4ecd770a05b38693b4f53434f557040d5f962a2aa6da8d3671ccf36024c084bb14c139b702c16facc9fe29f61afc6cc395443fde3a03adccc5cf953f6e824
6
+ metadata.gz: 85fe339777a71018008083ea3ab19e5f2e3d07c05ac19e820d064b57124d70701abc8f764329be25b65875e94c79427f2cabbdf6eeb6fe05924b6bac1416fb31
7
+ data.tar.gz: be6ac37a8293a77fcedd3fd6690242f7408dc21d563017e1673ca7f7b6e5562ab12b12061774b99c61a1d7ee5278862f4f9724486cc825eed89298202dc25996
@@ -1,3 +1,3 @@
1
1
  module Flatpickr
2
- VERSION = '2.3.6.0'
2
+ VERSION = '2.3.7.0'
3
3
  end
@@ -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, @license MIT */
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 (date && dateObj instanceof Date) {
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 (self[type + "DateHasTime"]) self.currentYearElement[type] = dateObj.getFullYear();else self.currentYearElement.removeAttribute(type);
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
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flatpickr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.6.0
4
+ version: 2.3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zoran