@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.
@@ -27,7 +27,10 @@ router.post('/', (req, res) => {
27
27
  // res.setHeader('Content-Disposition', `attachment;filename=${req.body.name || utils.createIdentity()}.pdf`)
28
28
  res.contentType('application/pdf')
29
29
  res.setHeader('filename', `${req.body.name || utils.createIdentity()}.pdf`)
30
- // req.session.pdf = pdf
30
+ if (!req.session) {
31
+ req.session = {}
32
+ }
33
+ req.session.pdf = pdf
31
34
  res.send(pdf)
32
35
  }
33
36
  })
@@ -975,7 +975,10 @@ class WebsyDatePicker {
975
975
  })
976
976
  if (rangeInput.length > 2 && isContinuousRange === true) {
977
977
  this.selectedRangeDates = [rangeInput[0], rangeInput[rangeInput.length - 1]]
978
- }
978
+ }
979
+ if (isContinuousRange === false) {
980
+ this.currentselection = []
981
+ }
979
982
  // check if the custom range matches a configured range
980
983
  for (let i = 0; i < this.options.ranges[this.options.mode].length; i++) {
981
984
  if (this.options.ranges[this.options.mode][i].range.length === 1) {
@@ -1083,6 +1083,10 @@ var WebsyDatePicker = /*#__PURE__*/function () {
1083
1083
 
1084
1084
  if (rangeInput.length > 2 && isContinuousRange === true) {
1085
1085
  this.selectedRangeDates = [rangeInput[0], rangeInput[rangeInput.length - 1]];
1086
+ }
1087
+
1088
+ if (isContinuousRange === false) {
1089
+ this.currentselection = [];
1086
1090
  } // check if the custom range matches a configured range
1087
1091
 
1088
1092