daniel-nagy / fixed-table-header

Fixed table header directive.
MIT License
88 stars 36 forks source link

Doesn't work well with infinite-scroll #25

Closed harangozop closed 7 years ago

harangozop commented 7 years ago

When I'd like to use your solution with angular's infinite-scroll, then the "load more" function is called in every millisecond.

The issue is when you clone the table with the thead tag, it clones the whole table tag, with the infinite-scroll directive, so that way the copied table will have infinite scroll also, and it will trigger the load event.

I suggest you to try to remove these tags, or a better solution try not to copy the whole table, just the classes and styles from it to a new table.

I did this manually and works like a charm, but without your solution I would be lost. Thank you!