ps-toolkit-ui 1.18.33 → 1.18.35

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.
@@ -3962,19 +3962,20 @@
3962
3962
  if (this.table.expertSearch) {
3963
3963
  var s = new InputClass(this.table.environment, this.table.l, 'Search', 'fad fa-magnifying-glass', exports.InputType.Submit, 'blue');
3964
3964
  s.style = { position: 'absolute', bottom: '20px', left: '0' };
3965
- this.table.searchForm.inputs.push(s);
3965
+ this.table.searchForm.addButtons('Search');
3966
3966
  }
3967
3967
  this.table.searchForm.inputs.forEach(function (x) {
3968
+ var hasSubmit = _this.table.searchForm.inputs.some(function (s) { return s.type === exports.InputType.Submit; });
3968
3969
  x.required = false;
3969
3970
  x.displayLabel = _this.table.expertSearch;
3970
3971
  x.class = x.class + ' search-form-inp';
3971
- if (!_this.table.searchForm.inputs.some(function (s) { return s.type === exports.InputType.Submit; })) {
3972
+ x.withClear = !hasSubmit || _this.table.expertSearch;
3973
+ if (!hasSubmit) {
3972
3974
  if (x.onChange == null) {
3973
3975
  x.onChange = function () {
3974
3976
  _this.table.load();
3975
3977
  };
3976
3978
  }
3977
- x.withClear = true;
3978
3979
  }
3979
3980
  if (x.type === exports.InputType.Submit) {
3980
3981
  x.onClick = function () {