koalyptus / TableFilter

A Javascript library making HTML tables filterable and a bit more :)
https://www.tablefilter.com
MIT License
324 stars 95 forks source link

State not working #792

Closed akzeitlos closed 3 years ago

akzeitlos commented 3 years ago

Describe the bug I use the setting for state: state: { types: ['local_storage'], filters: true, page_number: true, page_length: true, sort: true, columns_visibility: true, filters_visibility: true },

Reproduction steps: Steps to reproduce the behavior:

  1. I filter something
  2. I reload the site
  3. The filtering is gone

Expected behavior I thought the filtering should be still there

Observed behavior: No filtering is vissible

TableFilter version: 0.7.2 Browser and version: Newest Chrome, Safari, Firefox OS and version: Mac Newest Device: iMac

akzeitlos commented 3 years ago

With this setting it works: types: ['hash', 'local_storage'],

no Ideo why?!?

akzeitlos commented 3 years ago

And it is only working if i load the same site. If I go on a edit page and save and come back, it is not stated. Do you have ideas?

akzeitlos commented 3 years ago

It works, I had no table id and so the id was every time another one. Hope it helps someone