@inspark/inspark-components 1.0.14 → 1.0.15

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.
@@ -1933,6 +1933,11 @@
1933
1933
  var hiddenFields = (this.columns || []).filter(function (_col) { return _col.isHidden; }).map(function (_col) { return _col.field; }).join(',');
1934
1934
  this.saveToLocalStorage(hiddenFields, this.stateKey + 'HiddenFields');
1935
1935
  window.localStorage.removeItem(this.stateKey);
1936
+ if (this.searchText) {
1937
+ window.localStorage.setItem(this.stateKey, JSON.stringify({
1938
+ filters: { global: { value: this.searchText, matchMode: 'contains' } }
1939
+ }));
1940
+ }
1936
1941
  if (this.dt) {
1937
1942
  this.dt.restoreState();
1938
1943
  }