ps-toolkit-ui 1.20.79 → 1.20.82

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,9 +6317,7 @@
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);
6321
6320
  var va = this.getValue(v);
6322
- console.log(va);
6323
6321
  if (this.inp.type === exports.InputType.SelectSearchRadio && va.options.length !== 0) {
6324
6322
  return;
6325
6323
  }
@@ -6370,11 +6368,8 @@
6370
6368
  op.selected = false;
6371
6369
  }
6372
6370
  else {
6373
- console.log(op);
6374
- console.log(this.inp.options);
6375
- console.log(this.inp.options.filter(function (x) { return x.parent != null && x.parent.value === op.parent.value; }));
6376
6371
  this.inp.value = op.value;
6377
- this.inp.options.filter(function (x) { return x.parent != null && x.parent.value === op.parent.value; }).forEach(function (x) { return x.selected = false; });
6372
+ this.inp.options.find(function (x) { return x.value === op.parent.value; }).options.forEach(function (x) { return x.selected = false; });
6378
6373
  op.selected = true;
6379
6374
  }
6380
6375
  };
@@ -6559,7 +6554,7 @@
6559
6554
  };
6560
6555
  FormSelectComponent.prototype.getPlaceHolder = function () {
6561
6556
  var _this = this;
6562
- if (this.inp.multiple) {
6557
+ if (this.inp.multiple || this.inp.type === exports.InputType.SelectSearchRadio) {
6563
6558
  var s = this.inp.getSelectedOptions();
6564
6559
  if (s.length > 0) {
6565
6560
  return s.map(function (x) { return _this.inp.l(x.name); }).join(', ');