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.
@@ -9021,6 +9021,19 @@ function usePrepop() {
9021
9021
  value = urlParams2.get(node2.name);
9022
9022
  }
9023
9023
  if (value) {
9024
+ if (node2.props.options) {
9025
+ var found = false;
9026
+ for (var i2 = 0; i2 < node2.props.options.length; i2++) {
9027
+ if (node2.props.options[i2].value == value) {
9028
+ found = true;
9029
+ break;
9030
+ }
9031
+ }
9032
+ if (!found) {
9033
+ console.debug("Prepop option not found for:", node2.name, value);
9034
+ return;
9035
+ }
9036
+ }
9024
9037
  console.debug("Setting prepop value for:", node2.name, value);
9025
9038
  node2.input(value);
9026
9039
  }
@@ -10137,7 +10150,7 @@ function useSteps() {
10137
10150
  }
10138
10151
  var elem = document.getElementById(firstInput.context.id);
10139
10152
  elem.focus();
10140
- }, 300);
10153
+ }, 400);
10141
10154
  }
10142
10155
  return true;
10143
10156
  };