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.
@@ -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
- }, 300);
5476
+ }, 400);
5464
5477
  }
5465
5478
  return true;
5466
5479
  };