@luftborn/custom-elements 2.3.1 → 2.3.2
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.js +5 -2
- package/demo/index.min.js +4 -1
- package/demo/index.min.js.map +1 -1
- package/dist/custom-form.js +4 -1
- package/dist/custom-form.js.map +1 -1
- package/package.json +1 -1
- package/src/custom-form.ts +4 -1
package/demo/index.min.js
CHANGED
|
@@ -2343,7 +2343,10 @@ var CustomForm = /** @class */ (function () {
|
|
|
2343
2343
|
var groupDependsOnField_2 = otherGroup.getAttribute('data-depends-on');
|
|
2344
2344
|
var dependentValue_1 = otherGroup.getAttribute('data-dependent-value');
|
|
2345
2345
|
inputElementsInsideGroup.forEach(function (input) {
|
|
2346
|
-
if (input.name === groupDependsOnField_2
|
|
2346
|
+
if (input.name === groupDependsOnField_2
|
|
2347
|
+
&& input.value
|
|
2348
|
+
&& (input.value === dependentValue_1
|
|
2349
|
+
|| input.value.indexOf(dependentValue_1) >= 0)) {
|
|
2347
2350
|
_this.showGroupAndItsDependencies(otherGroup);
|
|
2348
2351
|
}
|
|
2349
2352
|
});
|