Bug report: KeyTable + Scroller with deferRender option

Bug report: KeyTable + Scroller with deferRender option

dwetomdwetom Posts: 2Questions: 0Answers: 0
edited June 2017 in Free community support

Hi,
i believe i found a bug when using KeyTable with scroller and with deferRender option set to true.

Steps
When i click somewhere in the lowest rows while having about 1000 rows in the table, the table throws an error:
Uncaught TypeError: Cannot read property 'row' of undefined
and the cell will not get focused by keyTable.

version: DataTables 1.10.15, KeyTable 2.2.1, Scroller 1.4.2, Select 1.2.2

jsfiddle:
https://jsfiddle.net/2ccenrx7/

Is it a bug or am i just missing something here.

Thank you,
Tom

Replies

  • vskorpikvskorpik Posts: 1Questions: 0Answers: 0

    Hi,

    yea, I have same problem with keyTable, deferRender=true and paging. If I skip for example from page 1 to 3 and need use keyTable (focus) then error message appear:
    Uncaught TypeError: Cannot read property 'row' of undefined
    at KeyTable._focus

  • allanallan Posts: 62,377Questions: 1Answers: 10,234 Site admin

    Thanks for flagging this up! I've just managed to reproduce the error in the demo provided by Tom. I'll look into it and post back when resolved.

    Allan

  • allanallan Posts: 62,377Questions: 1Answers: 10,234 Site admin

    Fixed now with these two commits: 1 and 2.

    I'll tag and release KeyTable shortly.

    Allan

  • dwetomdwetom Posts: 2Questions: 0Answers: 0

    Confirmed, thank you.

    Tom.

This discussion has been closed.