@websy/websy-designs 1.2.19 → 1.2.21

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.
@@ -1161,7 +1161,10 @@ class WebsyDatePicker {
1161
1161
  })
1162
1162
  if (rangeInput.length > 2 && isContinuousRange === true) {
1163
1163
  this.selectedRangeDates = [rangeInput[0], rangeInput[rangeInput.length - 1]]
1164
- }
1164
+ }
1165
+ if (isContinuousRange === false) {
1166
+ this.currentselection = []
1167
+ }
1165
1168
  // check if the custom range matches a configured range
1166
1169
  for (let i = 0; i < this.options.ranges[this.options.mode].length; i++) {
1167
1170
  if (this.options.ranges[this.options.mode][i].range.length === 1) {
@@ -1295,6 +1295,10 @@ var WebsyDatePicker = /*#__PURE__*/function () {
1295
1295
 
1296
1296
  if (rangeInput.length > 2 && isContinuousRange === true) {
1297
1297
  this.selectedRangeDates = [rangeInput[0], rangeInput[rangeInput.length - 1]];
1298
+ }
1299
+
1300
+ if (isContinuousRange === false) {
1301
+ this.currentselection = [];
1298
1302
  } // check if the custom range matches a configured range
1299
1303
 
1300
1304