ps-toolkit-ui 1.4.98 → 1.5.1

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.
@@ -3080,11 +3080,18 @@
3080
3080
  this.table.searchForm.inputs.forEach(function (x) {
3081
3081
  x.required = false;
3082
3082
  x.displayLabel = false;
3083
- x.withClear = true;
3084
3083
  x.class = x.class + ' h-30 search-form-inp';
3085
- x.onChange = function () {
3086
- _this.table.load();
3087
- };
3084
+ if (!_this.table.searchForm.inputs.some(function (s) { return s.type === exports.InputType.Submit; })) {
3085
+ x.onChange = function () {
3086
+ _this.table.load();
3087
+ };
3088
+ x.withClear = true;
3089
+ }
3090
+ if (x.type === exports.InputType.Submit) {
3091
+ x.onClick = function () {
3092
+ _this.table.load(x);
3093
+ };
3094
+ }
3088
3095
  });
3089
3096
  }
3090
3097
  this.options = this.getOptions();