ps-toolkit-ui 1.20.73 → 1.20.75

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.
@@ -6317,8 +6317,10 @@
6317
6317
  };
6318
6318
  FormSelectComponent.prototype.selectOption = function (v, isEdit) {
6319
6319
  if (isEdit === void 0) { isEdit = false; }
6320
+ console.log(v, this.inp.options);
6320
6321
  var va = this.getValue(v);
6321
- if (this.inp.type === exports.InputType.SelectSearchRadio && va.options.length !== 0) {
6322
+ console.log(va);
6323
+ if (v != null && this.inp.type === exports.InputType.SelectSearchRadio && va.options.length !== 0) {
6322
6324
  return;
6323
6325
  }
6324
6326
  this.inp.error = null;
@@ -6369,7 +6371,7 @@
6369
6371
  }
6370
6372
  else {
6371
6373
  this.inp.value = op.value;
6372
- this.inp.options.filter(function (x) { return x.parent.value === op.parent.value; }).forEach(function (x) { return x.selected = false; });
6374
+ this.inp.options.filter(function (x) { return x.parent != null && x.parent.value === op.parent.value; }).forEach(function (x) { return x.selected = false; });
6373
6375
  op.selected = true;
6374
6376
  }
6375
6377
  };