Bug report: KeyTable + Scroller with deferRender option
Bug report: KeyTable + Scroller with deferRender option
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
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
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
Fixed now with these two commits: 1 and 2.
I'll tag and release KeyTable shortly.
Allan
Confirmed, thank you.
Tom.