@luftborn/custom-elements 2.8.7 → 2.8.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/demo/index.html +8 -4
- package/demo/index.js +3 -3
- package/demo/index.min.js +2 -2
- package/demo/index.min.js.map +1 -1
- package/dist/custom-form.js +1 -1
- package/dist/custom-form.js.map +1 -1
- package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerUtils.js +1 -1
- package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerUtils.js.map +1 -1
- package/package.json +1 -1
- package/src/custom-form.ts +1 -1
- package/src/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerUtils.ts +2 -2
package/demo/index.min.js
CHANGED
|
@@ -2308,7 +2308,7 @@ var CustomForm = /** @class */ (function () {
|
|
|
2308
2308
|
var customElement = document.forms[0].querySelector("[name=\"" + dependentField + "\"]");
|
|
2309
2309
|
element.setAttribute("hidden", "");
|
|
2310
2310
|
customElement.onChange.on(function (event) {
|
|
2311
|
-
if (event.value === dependentValue
|
|
2311
|
+
if (event.value === dependentValue) {
|
|
2312
2312
|
_this.showGroupAndItsDependencies(element);
|
|
2313
2313
|
}
|
|
2314
2314
|
else {
|
|
@@ -3420,7 +3420,7 @@ function convertStringToDate(dateString, dateFormat, language) {
|
|
|
3420
3420
|
var index = months.indexOf(monthName.toLowerCase());
|
|
3421
3421
|
if (index === -1) {
|
|
3422
3422
|
var englishMonthIndex = englishMonths.indexOf(monthName.toLowerCase());
|
|
3423
|
-
return englishMonthIndex === -1 ? NaN : englishMonthIndex;
|
|
3423
|
+
return englishMonthIndex === -1 ? NaN : englishMonthIndex + 1;
|
|
3424
3424
|
}
|
|
3425
3425
|
return index + 1;
|
|
3426
3426
|
};
|