flatpickr 2.5.4.0 → 2.5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90cf1d11010dfe757bc378ef8c617672b327e853
4
- data.tar.gz: 44fa21342978f5863e6588aca863a425b8ec7e34
3
+ metadata.gz: f4eccdc8455ed0a36cfe52216afeb464cbe17b63
4
+ data.tar.gz: 2ea024b0703820c80403417a484291312d8aca94
5
5
  SHA512:
6
- metadata.gz: 11221497605d77e855ae8cc60556ac778eda0d7352cbaf333a22929a6d86b491581d1060778741768dbfa530c03d59ebdd7145b5bb5ca8b17ff1a2c4b383ba2f
7
- data.tar.gz: bde43976f0dce5145fdc61328773c3d297d3f9cc74dae0152960ef708865ff8e7f9f6d2f04c4fb5280397407b27be14f5ebf6c711fa79c5ae31302e44a6818dd
6
+ metadata.gz: c3d201bd18b256c645277c47963b38a9b4694bfc282e979e71f4a6c46ce46e182bdde13b4b38c894a79136c84432fdf8955dd47115ac06791bd96266508886fd
7
+ data.tar.gz: 797692a8bca11dd71ada27368290608e3b17d4651b2d935f787905ea4922b0c072be5e38e28f479a76d76bf591623ef3a1c3922e443e05633121030dfcb17c57
@@ -1,3 +1,3 @@
1
1
  module Flatpickr
2
- VERSION = '2.5.4.0'
2
+ VERSION = '2.5.5.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.5.4, @license MIT */
5
+ /*! flatpickr v2.5.5, @license MIT */
6
6
  function Flatpickr(element, config) {
7
7
  var self = this;
8
8
 
@@ -45,7 +45,7 @@ function Flatpickr(element, config) {
45
45
 
46
46
  if (!self.isMobile) build();
47
47
 
48
- bind();
48
+ bindEvents();
49
49
 
50
50
  if (self.selectedDates.length || self.config.noCalendar) {
51
51
  if (self.config.enableTime) {
@@ -69,6 +69,10 @@ function Flatpickr(element, config) {
69
69
  return fn.bind(self);
70
70
  }
71
71
 
72
+ /**
73
+ * The handler for all events targeting the time inputs
74
+ * @param {Event} e the event - "input", "wheel", "increment", etc
75
+ */
72
76
  function updateTime(e) {
73
77
  if (self.config.noCalendar && !self.selectedDates.length)
74
78
  // picking time only
@@ -144,13 +148,44 @@ function Flatpickr(element, config) {
144
148
  }
145
149
  }
146
150
 
147
- function bind() {
151
+ /**
152
+ * Essentially addEventListener + tracking
153
+ * @param {Element} element the element to addEventListener to
154
+ * @param {String} event the event name
155
+ * @param {Function} handler the event handler
156
+ */
157
+ function bind(element, event, handler) {
158
+ if (event instanceof Array) return event.forEach(function (ev) {
159
+ return bind(element, ev, handler);
160
+ });
161
+
162
+ element.addEventListener(event, handler);
163
+ self._handlers.push({ element: element, event: event, handler: handler });
164
+ }
165
+
166
+ /**
167
+ * A mousedown handler which mimics click.
168
+ * Minimizes latency, since we don't need to wait for mouseup in most cases.
169
+ * Also, avoids handling right clicks.
170
+ *
171
+ * @param {Function} handler the event handler
172
+ */
173
+ function onClick(handler) {
174
+ return function (evt) {
175
+ return evt.which === 1 && handler(evt);
176
+ };
177
+ }
178
+
179
+ /**
180
+ * Adds all the necessary event listeners
181
+ */
182
+ function bindEvents() {
183
+ self._handlers = [];
148
184
  if (self.config.wrap) {
149
- ["open", "close", "toggle", "clear"].forEach(function (el) {
150
- self._toggles = self.element.querySelectorAll("[data-" + el + "]");
151
- for (var i = self._toggles.length; i--;) {
152
- self._toggles[i].addEventListener("click", self[el]);
153
- }
185
+ ["open", "close", "toggle", "clear"].forEach(function (evt) {
186
+ Array.prototype.forEach.call(self.element.querySelectorAll("[data-" + evt + "]"), function (el) {
187
+ return bind(el, "mousedown", onClick(self[evt]));
188
+ });
154
189
  });
155
190
  }
156
191
 
@@ -162,89 +197,83 @@ function Flatpickr(element, config) {
162
197
  };
163
198
  self.debouncedChange = debounce(self.triggerChange, 300);
164
199
 
165
- if (self.config.mode === "range" && self.daysContainer) self.daysContainer.addEventListener("mouseover", function (e) {
200
+ if (self.config.mode === "range" && self.daysContainer) bind(self.daysContainer, "mouseover", function (e) {
166
201
  return onMouseOver(e.target);
167
202
  });
168
203
 
169
- window.document.body.addEventListener("keydown", onKeyDown);
204
+ bind(window.document.body, "keydown", onKeyDown);
170
205
 
171
- if (!self.config.static) self._input.addEventListener("keydown", onKeyDown);
206
+ if (!self.config.static) bind(self._input, "keydown", onKeyDown);
172
207
 
173
- if (!self.config.inline && !self.config.static) window.addEventListener("resize", self.debouncedResize);
208
+ if (!self.config.inline && !self.config.static) bind(window, "resize", self.debouncedResize);
174
209
 
175
- if (window.ontouchstart) window.document.addEventListener("touchstart", documentClick);
210
+ if (window.ontouchstart) bind(window.document, "touchstart", documentClick);
176
211
 
177
- window.document.addEventListener("click", documentClick);
178
- self._input.addEventListener("blur", documentClick);
212
+ bind(window.document, "mousedown", onClick(documentClick));
213
+ bind(self._input, "blur", documentClick);
179
214
 
180
- if (self.config.clickOpens) self._input.addEventListener("focus", open);
215
+ if (self.config.clickOpens) bind(self._input, "focus", open);
181
216
 
182
217
  if (!self.config.noCalendar) {
183
- self.prevMonthNav.addEventListener("click", self.prevMonthFn = function () {
218
+ bind(self.prevMonthNav, "mousedown", onClick(self.prevMonthFn = function () {
184
219
  return changeMonth(-1);
185
- });
186
- self.nextMonthNav.addEventListener("click", self.nextMonthFn = function () {
220
+ }));
221
+ bind(self.nextMonthNav, "mousedown", onClick(self.nextMonthFn = function () {
187
222
  return changeMonth(1);
188
- });
223
+ }));
189
224
 
190
225
  self.monthNav.addEventListener("wheel", function (e) {
191
- e.preventDefault();
226
+ return e.preventDefault();
192
227
  });
193
228
 
194
- self.monthNav.addEventListener("wheel", debounce(onMonthNavScroll, 10));
195
- self.monthNav.addEventListener("click", onMonthNavClick);
229
+ bind(self.monthNav, "wheel", debounce(onMonthNavScroll, 10));
230
+ bind(self.monthNav, "mousedown", onClick(onMonthNavClick));
196
231
 
197
- self.currentYearElement.addEventListener("focus", function () {
232
+ bind(self.currentYearElement, "focus", function () {
198
233
  self.currentYearElement.select();
199
234
  });
200
235
 
201
- self.currentYearElement.addEventListener("input", onYearInput);
202
- self.currentYearElement.addEventListener("increment", onYearInput);
236
+ bind(self.currentYearElement, ["input", "increment"], onYearInput);
203
237
 
204
- self.daysContainer.addEventListener("click", selectDate);
238
+ bind(self.daysContainer, "mousedown", onClick(selectDate));
205
239
 
206
240
  if (self.config.animate) {
207
- self.daysContainer.addEventListener("animationend", animateDays);
208
- self.monthNav.addEventListener("animationend", animateMonths);
209
-
210
- self.daysContainer.addEventListener("webkitAnimationEnd", animateDays);
211
- self.monthNav.addEventListener("webkitAnimationEnd", animateMonths);
241
+ bind(self.daysContainer, ["webkitAnimationEnd", "animationend"], animateDays);
242
+ bind(self.monthNav, ["webkitAnimationEnd", "animationend"], animateMonths);
212
243
  }
213
244
  }
214
245
 
215
246
  if (self.config.enableTime) {
216
- self.timeContainer.addEventListener("wheel", updateTime);
217
-
218
- self.timeContainer.addEventListener("click", timeIncrement);
219
- self.timeContainer.addEventListener("input", updateTime);
220
- self.timeContainer.addEventListener("increment", updateTime);
221
- self.timeContainer.addEventListener("increment", self.debouncedChange);
247
+ bind(self.timeContainer, ["wheel", "input", "increment"], updateTime);
248
+ bind(self.timeContainer, "mousedown", onClick(timeIncrement));
222
249
 
223
- self.timeContainer.addEventListener("wheel", self.debouncedChange);
224
- self.timeContainer.addEventListener("input", self.triggerChange);
250
+ bind(self.timeContainer, ["wheel", "increment"], self.debouncedChange);
251
+ bind(self.timeContainer, "input", self.triggerChange);
225
252
 
226
- self.hourElement.addEventListener("focus", function () {
227
- self.hourElement.select();
253
+ bind(self.hourElement, "focus", function () {
254
+ return self.hourElement.select();
228
255
  });
229
- self.minuteElement.addEventListener("focus", function () {
230
- self.minuteElement.select();
256
+ bind(self.minuteElement, "focus", function () {
257
+ return self.minuteElement.select();
231
258
  });
232
259
 
233
- if (self.secondElement) {
234
- self.secondElement.addEventListener("focus", function () {
235
- self.secondElement.select();
236
- });
237
- }
260
+ if (self.secondElement) bind(self.secondElement, "focus", function () {
261
+ return self.secondElement.select();
262
+ });
238
263
 
239
264
  if (self.amPM) {
240
- self.amPM.addEventListener("click", function (e) {
265
+ bind(self.amPM, "mousedown", onClick(function (e) {
241
266
  updateTime(e);
242
267
  self.triggerChange(e);
243
- });
268
+ }));
244
269
  }
245
270
  }
246
271
  }
247
272
 
273
+ /**
274
+ * Removes the day container that slided out of view
275
+ * @param {Event} e the animation event
276
+ */
248
277
  function animateDays(e) {
249
278
  if (self.daysContainer.childNodes.length > 1) {
250
279
  switch (e.animationName) {
@@ -268,6 +297,10 @@ function Flatpickr(element, config) {
268
297
  }
269
298
  }
270
299
 
300
+ /**
301
+ * Removes the month element that animated out of view
302
+ * @param {Event} e the animation event
303
+ */
271
304
  function animateMonths(e) {
272
305
  switch (e.animationName) {
273
306
  case "slideLeftNew":
@@ -285,6 +318,10 @@ function Flatpickr(element, config) {
285
318
  }
286
319
  }
287
320
 
321
+ /**
322
+ * Set the calendar view to a particular date.
323
+ * @param {Date} jumpDate the date to set the view to
324
+ */
288
325
  function jumpToDate(jumpDate) {
289
326
  jumpDate = jumpDate ? self.parseDate(jumpDate) : self.latestSelectedDateObj || (self.config.minDate > self.now ? self.config.minDate : self.config.maxDate && self.config.maxDate < self.now ? self.config.maxDate : self.now);
290
327
 
@@ -301,10 +338,23 @@ function Flatpickr(element, config) {
301
338
  self.redraw();
302
339
  }
303
340
 
341
+ /**
342
+ * The up/down arrow handler for time inputs
343
+ * @param {Event} e the click event
344
+ */
304
345
  function timeIncrement(e) {
305
346
  if (~e.target.className.indexOf("arrow")) incrementNumInput(e, e.target.classList.contains("arrowUp") ? 1 : -1);
306
347
  }
307
348
 
349
+ /**
350
+ * Increments/decrements the value of input associ-
351
+ * ated with the up/down arrow by dispatching an
352
+ * "increment" event on the input.
353
+ *
354
+ * @param {Event} e the click event
355
+ * @param {Number} delta the diff (usually 1 or -1)
356
+ * @param {Element} inputElem the input element
357
+ */
308
358
  function incrementNumInput(e, delta, inputElem) {
309
359
  var input = inputElem || e.target.parentNode.childNodes[0];
310
360
  var event = createEvent("increment");
@@ -771,13 +821,10 @@ function Flatpickr(element, config) {
771
821
  function destroy(instance) {
772
822
  instance = instance || self;
773
823
 
774
- window.removeEventListener("resize", instance.debouncedResize);
775
-
776
- window.document.removeEventListener("click", documentClick);
777
- window.document.removeEventListener("touchstart", documentClick);
778
- window.document.removeEventListener("blur", documentClick);
779
- window.document.body.removeEventListener("keydown", onKeyDown);
780
- instance._input.removeEventListener("keydown", onKeyDown);
824
+ for (var i = self._handlers.length; i--;) {
825
+ var h = self._handlers[i];
826
+ h.element.removeEventListener(h.event, h.handler);
827
+ }
781
828
 
782
829
  if (instance.mobileInput) {
783
830
  if (instance.mobileInput.parentNode) instance.mobileInput.parentNode.removeChild(instance.mobileInput);
@@ -793,7 +840,6 @@ function Flatpickr(element, config) {
793
840
  if (instance.input) {
794
841
  instance.input.type = instance.input._type;
795
842
  instance.input.classList.remove("flatpickr-input");
796
- instance.input.removeEventListener("focus", open);
797
843
  instance.input.removeAttribute("readonly");
798
844
  instance.input.value = "";
799
845
  }
@@ -1411,8 +1457,10 @@ function Flatpickr(element, config) {
1411
1457
 
1412
1458
  /* istanbul ignore next */
1413
1459
  if (!self.input) return console.warn("Error: invalid input element specified", self.input);
1460
+
1414
1461
  self.input._type = self.input.type;
1415
1462
  self.input.type = "text";
1463
+
1416
1464
  self.input.classList.add("flatpickr-input");
1417
1465
  self._input = self.input;
1418
1466
 
@@ -2078,8 +2126,8 @@ Flatpickr.prototype = {
2078
2126
  date = new Date();
2079
2127
  timeless = true;
2080
2128
  } else if (/Z$/.test(date) || /GMT$/.test(date)) // datestrings w/ timezone
2081
- date = new Date(date);else if (this.config.parseDate) date = this.config.parseDate(date, format);else {
2082
- var parsedDate = this.config.noCalendar ? new Date(new Date().setHours(0, 0, 0, 0)) : new Date(new Date().getFullYear(), 0, 1, 0, 0, 0, 0);
2129
+ date = new Date(date);else if (this.config && this.config.parseDate) date = this.config.parseDate(date, format);else {
2130
+ var parsedDate = !this.config || !this.config.noCalendar ? new Date(new Date().getFullYear(), 0, 1, 0, 0, 0, 0) : new Date(new Date().setHours(0, 0, 0, 0));
2083
2131
 
2084
2132
  var matched = void 0;
2085
2133
 
@@ -1,4 +1,4 @@
1
- .flatpickr-calendar{background:transparent;overflow:hidden;max-height:0;opacity:0;visibility:hidden;text-align:center;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:315px;box-sizing:border-box;background:#fff;box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,0.08);}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;visibility:visible;overflow:visible;max-height:640px}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:flatpickrFadeInDown 300ms cubic-bezier(.23,1,.32,1);animation:flatpickrFadeInDown 300ms cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px);}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.hasWeeks{width:auto}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.rightMost:after{left:auto;right:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-month{background:transparent;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);height:28px;line-height:24px;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden}.flatpickr-prev-month,.flatpickr-next-month{text-decoration:none;cursor:pointer;position:absolute;top:0;height:28px;line-height:16px;padding:10px calc(3.57% - 1.5px);z-index:3;}.flatpickr-prev-month i,.flatpickr-next-month i{position:relative}.flatpickr-prev-month.flatpickr-prev-month,.flatpickr-next-month.flatpickr-prev-month{/*
1
+ .flatpickr-calendar{background:transparent;overflow:hidden;max-height:0;opacity:0;visibility:hidden;text-align:center;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:315px;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,0.08);}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;visibility:visible;overflow:visible;max-height:640px}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:flatpickrFadeInDown 300ms cubic-bezier(.23,1,.32,1);animation:flatpickrFadeInDown 300ms cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px);}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.hasWeeks{width:auto}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:'';height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.rightMost:after{left:auto;right:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-month{background:transparent;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);height:28px;line-height:24px;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden}.flatpickr-prev-month,.flatpickr-next-month{text-decoration:none;cursor:pointer;position:absolute;top:0;height:28px;line-height:16px;padding:10px calc(3.57% - 1.5px);z-index:3;}.flatpickr-prev-month i,.flatpickr-next-month i{position:relative}.flatpickr-prev-month.flatpickr-prev-month,.flatpickr-next-month.flatpickr-prev-month{/*
2
2
  /*rtl:begin:ignore*/left:0;/*
3
3
  /*rtl:end:ignore*/}/*
4
4
  /*rtl:begin:ignore*/
@@ -16,6 +16,8 @@
16
16
  position: absolute;
17
17
  width: 315px;
18
18
  box-sizing: border-box;
19
+ -ms-touch-action: manipulation;
20
+ touch-action: manipulation;
19
21
  background: #fff;
20
22
  box-shadow: 1px 0 0 #eee, -1px 0 0 #eee, 0 1px 0 #eee, 0 -1px 0 #eee, 0 3px 13px rgba(0,0,0,0.08);
21
23
  }
@@ -16,6 +16,8 @@
16
16
  position: absolute;
17
17
  width: 315px;
18
18
  box-sizing: border-box;
19
+ -ms-touch-action: manipulation;
20
+ touch-action: manipulation;
19
21
  background: rgba(239,239,239,0.95);
20
22
  box-shadow: 1px 0 0 #e3e3e3, -1px 0 0 #e3e3e3, 0 1px 0 #e3e3e3, 0 -1px 0 #e3e3e3, 0 3px 13px rgba(0,0,0,0.08);
21
23
  }
@@ -16,6 +16,8 @@
16
16
  position: absolute;
17
17
  width: 315px;
18
18
  box-sizing: border-box;
19
+ -ms-touch-action: manipulation;
20
+ touch-action: manipulation;
19
21
  box-shadow: 0 3px 13px rgba(0,0,0,0.08);
20
22
  }
21
23
  .flatpickr-calendar.open,
@@ -16,6 +16,8 @@
16
16
  position: absolute;
17
17
  width: 315px;
18
18
  box-sizing: border-box;
19
+ -ms-touch-action: manipulation;
20
+ touch-action: manipulation;
19
21
  background: rgba(63,68,88,0.95);
20
22
  box-shadow: 1px 0 0 #3f4458, -1px 0 0 #3f4458, 0 1px 0 #3f4458, 0 -1px 0 #3f4458, 0 3px 13px rgba(0,0,0,0.08);
21
23
  }
@@ -16,6 +16,8 @@
16
16
  position: absolute;
17
17
  width: 315px;
18
18
  box-sizing: border-box;
19
+ -ms-touch-action: manipulation;
20
+ touch-action: manipulation;
19
21
  box-shadow: 0 3px 13px rgba(0,0,0,0.08);
20
22
  }
21
23
  .flatpickr-calendar.open,
@@ -16,6 +16,8 @@
16
16
  position: absolute;
17
17
  width: 315px;
18
18
  box-sizing: border-box;
19
+ -ms-touch-action: manipulation;
20
+ touch-action: manipulation;
19
21
  box-shadow: 0 3px 13px rgba(0,0,0,0.08);
20
22
  }
21
23
  .flatpickr-calendar.open,
@@ -16,6 +16,8 @@
16
16
  position: absolute;
17
17
  width: 315px;
18
18
  box-sizing: border-box;
19
+ -ms-touch-action: manipulation;
20
+ touch-action: manipulation;
19
21
  box-shadow: 0 3px 13px rgba(0,0,0,0.08);
20
22
  }
21
23
  .flatpickr-calendar.open,
@@ -16,6 +16,8 @@
16
16
  position: absolute;
17
17
  width: 315px;
18
18
  box-sizing: border-box;
19
+ -ms-touch-action: manipulation;
20
+ touch-action: manipulation;
19
21
  box-shadow: 0 3px 13px rgba(0,0,0,0.08);
20
22
  }
21
23
  .flatpickr-calendar.open,
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.5.4.0
4
+ version: 2.5.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zoran