bhl-forms 0.0.42 → 0.0.43
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/dist/bhl-forms.es.js +14 -1
- package/dist/bhl-forms.iife.js +2 -2
- package/dist/bhl-forms.modern.es.js +14 -1
- package/dist/bhl-forms.modern.iife.js +6 -6
- package/dist/bhl-forms.modern.umd.js +6 -6
- package/dist/bhl-forms.umd.js +2 -2
- package/dist/forms/childAndFamily.es.js +70 -44
- package/dist/forms/childAndFamily.iife.js +1 -1
- package/dist/forms/childAndFamily.json +1 -1
- package/dist/forms/generalLegal.es.js +64 -43
- package/dist/forms/generalLegal.iife.js +1 -1
- package/dist/forms/generalLegal.json +1 -1
- package/dist/forms/testForm.es.js +33 -22
- package/dist/forms/testForm.iife.js +1 -1
- package/dist/forms/testForm.json +1 -1
- package/dist/main.css +1 -1
- package/package.json +2 -2
package/dist/bhl-forms.es.js
CHANGED
|
@@ -4431,6 +4431,19 @@ function usePrepop() {
|
|
|
4431
4431
|
value = urlParams2.get(node.name);
|
|
4432
4432
|
}
|
|
4433
4433
|
if (value) {
|
|
4434
|
+
if (node.props.options) {
|
|
4435
|
+
let found = false;
|
|
4436
|
+
for (var i2 = 0; i2 < node.props.options.length; i2++) {
|
|
4437
|
+
if (node.props.options[i2].value == value) {
|
|
4438
|
+
found = true;
|
|
4439
|
+
break;
|
|
4440
|
+
}
|
|
4441
|
+
}
|
|
4442
|
+
if (!found) {
|
|
4443
|
+
console.debug("Prepop option not found for:", node.name, value);
|
|
4444
|
+
return;
|
|
4445
|
+
}
|
|
4446
|
+
}
|
|
4434
4447
|
console.debug("Setting prepop value for:", node.name, value);
|
|
4435
4448
|
node.input(value);
|
|
4436
4449
|
}
|
|
@@ -5460,7 +5473,7 @@ function useSteps() {
|
|
|
5460
5473
|
}
|
|
5461
5474
|
const elem = document.getElementById(firstInput.context.id);
|
|
5462
5475
|
elem.focus();
|
|
5463
|
-
},
|
|
5476
|
+
}, 400);
|
|
5464
5477
|
}
|
|
5465
5478
|
return true;
|
|
5466
5479
|
};
|