@wernfried/daterangepicker 5.4.6 → 5.4.9

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.
@@ -166,6 +166,8 @@ var DateRangePicker = (function(exports, luxon2) {
166
166
  } else if (typeof options.parentEl === "string") {
167
167
  this.parentEl = document.querySelector(options.parentEl) ?? this.parentEl;
168
168
  }
169
+ if (this.parentEl.matches("input"))
170
+ console.error('Parent element "parentEl" must not a self-closing "<input>"');
169
171
  this.parentEl.appendChild(this.container);
170
172
  if (typeof options.timePicker === "boolean")
171
173
  this.timePicker = options.timePicker;
@@ -1605,7 +1607,7 @@ var DateRangePicker = (function(exports, luxon2) {
1605
1607
  top: offset(this.parentEl).top - this.parentEl.scrollTop,
1606
1608
  left: offset(this.parentEl).left - this.parentEl.scrollLeft
1607
1609
  };
1608
- parentRightEdge = this.parentEl.clientWidth + offset(this.parentEl).left;
1610
+ parentRightEdge = this.parentEl.clientWidth + parentOffset.left;
1609
1611
  }
1610
1612
  switch (this.drops) {
1611
1613
  case "auto":