@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.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 || event.value.indexOf(dependentValue) >= 0) {
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
  };