table not clearing when you reload data

table not clearing when you reload data

54696d2054696d20 Posts: 75Questions: 18Answers: 0
edited March 2020 in DataTables 1.10

Here is my example http://live.datatables.net/gomamudu/1/edit

If you click on a couple of rows. You'll see a div appear. If you click one of the rows. The div still appears until the last row is deselected.

The problem is if you then click on the Load new data button, click on a couple of rows and then click on one to deselect. The div is hidden even though there are rows still selected.

I added console.log to those select and deselect functions. I noticed they fire once before you click on the load new data button. But if you click on that button. Those functions fire 2 times. If you click it again. Those will fire 3 times. I

Any idea's?

Thanks

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.