ps-toolkit-ui 1.16.31 → 1.16.32

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