ps-toolkit-ui 1.5.0 → 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,13 @@
3080
3080
  this.table.searchForm.inputs.forEach(function (x) {
3081
3081
  x.required = false;
3082
3082
  x.displayLabel = false;
3083
- x.withClear = !_this.table.searchForm.inputs.some(function (s) { return s.type === exports.InputType.Submit; });
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
+ }
3088
3090
  if (x.type === exports.InputType.Submit) {
3089
3091
  x.onClick = function () {
3090
3092
  _this.table.load(x);