Bug with scrollX and fixedHeader: duplicated table
Bug with scrollX and fixedHeader: duplicated table

Hi I found a possible bug using fixedHeader and scrollX enabled at the same time.
When I try to add a new row (in my example here) WHEN page is scrolled and header table is "fixed", then a new empty table appear and original table loses her headers:
https://live.datatables.net/hisiduja/3/edit
I used 2 table because I found the problem in this situation. i don't know if the problem persist on single tables
This question has an accepted answers - jump to answer
Answers
The problem is that the fixed header is being selected and then turned into its own DataTable!
If you tighten up the selector, then it will work okay: https://live.datatables.net/hisiduja/4/edit . Note I've only make it work for the first table on that page, but you could use a function or similar to have it work for both.
Allan
Ok thanks. The problem is that I have a logic to add dynamic tables and i use class instead IDs.
So i've modified this way:
https://live.datatables.net/hisiduja/5/edit