DataTables / StateRestore

StateRestore extension for Datatables
Other
3 stars 3 forks source link

activeStates and button highlighting do not work for predefined states #3

Closed gouldner closed 2 years ago

gouldner commented 2 years ago

See this jsfiddle to see the issue. Using buttons 2.1.1 and stateRestore 1.0.1

If you create some view manually you will see they work fine. They highlight when selected and the title updates. However, when you select either of the two predefined views they don't highlight as active (I enhanced to make active green) and the Active States bar doesn't update.

https://jsfiddle.net/gouldner/m1yjs6bp/

SandyDatatables commented 2 years ago

Hi @gouldner ,

Something isn't right there. I've raised an issue internally (DD-2397 for my reference) and will report back here when there is an update.

Thanks, Sandy

SandyDatatables commented 2 years ago

Hi @gouldner ,

That should be the issue fixed now as you can see at this example. This will be available in the next StateRestore release which we hope will be in the next few weeks. Until then you can access the fix from the nightly builds.

Thanks, Sandy