Zizzamia / ng-tasty

A tasty collection of reusable UI components for Angular, like grandma used to make. Like Table directive, WebSocket / Debounce / Throttle service, Range / Camelize / Slugify filters
MIT License
435 stars 64 forks source link

Table reload and pagination issue #234

Open kempelen opened 7 years ago

kempelen commented 7 years ago

Please reproduce this bug on the demo site: http://zizzamia.com/ng-tasty/directive/table-server-side/reload

  1. Press "Search" button
  2. Type a letter into "Filters by name" input, eg. "s", then press "Search".
  3. Paginate to page 2
  4. Delete character from "Filters by name", then press "Search" Then pagination not working anymore...

I do not know what cause this problem, but this is an annoying bug, because I would like to poll/reload the content of a table from the server perodicaly, but the pagination crashes after some filtering.

kojo-caesar commented 7 years ago

Hello,

Did you find a solution for this?

In table.js, I removed the condition if (!filterChangedPage) at line 411 and let the updateServerSideResource() function be called. It seems to be working.