@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.
- package/API_Doc.md +1 -1
- package/README.md +9 -9
- package/dist/cjs/daterangepicker.cjs +3 -1
- package/dist/cjs/daterangepicker.cjs.map +1 -1
- package/dist/cjs/daterangepicker.min.cjs +1 -1
- package/dist/cjs/daterangepicker.min.cjs.map +1 -1
- package/dist/esm/daterangepicker.js +3 -1
- package/dist/esm/daterangepicker.js.map +1 -1
- package/dist/esm/daterangepicker.min.js +1 -1
- package/dist/esm/daterangepicker.min.js.map +1 -1
- package/dist/global/daterangepicker.js +3 -1
- package/dist/global/daterangepicker.js.map +1 -1
- package/dist/global/daterangepicker.min.js +1 -1
- package/dist/global/daterangepicker.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -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 +
|
|
1610
|
+
parentRightEdge = this.parentEl.clientWidth + parentOffset.left;
|
|
1609
1611
|
}
|
|
1610
1612
|
switch (this.drops) {
|
|
1611
1613
|
case "auto":
|