ps-toolkit-ui 1.16.28 → 1.16.30

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.
@@ -6204,29 +6204,22 @@
6204
6204
  if (this.inp.onChange) {
6205
6205
  this.inp.onChange(this.inp, isEdit);
6206
6206
  }
6207
- console.log(this.inp, this.inp.rel, 'this.inp.rel');
6208
- this.clearRel(this.inp, v);
6209
- if (!isEdit && !this.inp.multiple) {
6210
- this.cI('Tab');
6211
- }
6212
- };
6213
- FormSelectComponent.prototype.clearRel = function (i, v) {
6214
- console.log(i.rel, 'i.reli.reli.reli.rel');
6215
- while (i.rel != null) {
6216
- i.rel.value = null;
6217
- i.rel.search = '';
6218
- i.rel.options = [];
6207
+ if (this.inp.rel) {
6208
+ this.inp.rel.value = null;
6209
+ this.inp.rel.search = '';
6210
+ this.inp.rel.options = [];
6219
6211
  if (v !== null) {
6220
- i.rel.url = i.relUrl.replace('{}', this.inp.value);
6221
- if (i.rel.type !== exports.InputType.SelectAutoComplete) {
6222
- i.rel.load();
6212
+ this.inp.rel.url = this.inp.relUrl.replace('{}', this.inp.value);
6213
+ if (this.inp.rel.type !== exports.InputType.SelectAutoComplete) {
6214
+ this.inp.rel.load();
6223
6215
  }
6224
6216
  else {
6225
- i.rel.url += '_{}';
6217
+ this.inp.rel.url += '_{}';
6226
6218
  }
6227
6219
  }
6228
- i.rel = i.rel.rel;
6229
- v = null;
6220
+ }
6221
+ if (!isEdit && !this.inp.multiple) {
6222
+ this.cI('Tab');
6230
6223
  }
6231
6224
  };
6232
6225
  FormSelectComponent.prototype.toggle = function (op) {