Potential Bug with cell().data() ? [have live.datatables.net demo]

Potential Bug with cell().data() ? [have live.datatables.net demo]

rhinorhino Posts: 80Questions: 2Answers: 17
edited July 2014 in Free community support

So I'm trying to loop through the input fields of a datatable and update the data for each cell that contains an input field. I've made a minimal live.datatables.net demo of the way I'm doing it, and it seems like it should work. But the resulting table is screwed up.

Simply click the 'Test' button to see what I mean.

The first cell in the table should read 'update: 0' and the second cell should read 'update: 1', but they instead show 'update: 1' and '1', respectively. The remaining cells show correctly.

I've been pulling my hair out with this problem for two days, and now I'm desperate.

Does this seem like a bug? If not, any idea what the issue is? Or how I might solve it?

Thanks folks!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Hi,

    Thanks for flagging this up and the test case. Yes, this is very certainly a bug. I've created a slightly simpler test case showing it here: http://live.datatables.net/wucanuj/1/edit .

    I'll finish doing my forum rounds and then look at how to fix it.

    Regards,
    Allan

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Fix now committed and the nightly updated.

    Your example now working: http://live.datatables.net/sofexam/4/edit

    Thanks again for letting me know about this, and apologies for the error being there dint he first place!

    Allan

  • rhinorhino Posts: 80Questions: 2Answers: 17

    Wow! Thanks allan, that's an amazing response time. Much appreciated :)

This discussion has been closed.