Question on _fnSetFocus, in dataTables.keyTable.js - 1.2.1

Question on _fnSetFocus, in dataTables.keyTable.js - 1.2.1

behainesbehaines Posts: 1Questions: 1Answers: 0

Around line 447, there is a call:
var iRow = _fnFindDtCell( nTarget )[1];
The issue I ran into is fnFindDtCell returns a null if nTarget isn't found. (Why the target wasn't found is another question)
This line assumes there was a cell found. On a null return it errors out on the [1]. I added a test for null and a return if (for some reason) the cell isn't found. I would suggest adding something like that to the next release of dataTables.keyTable.js.

Thanks!
B

This discussion has been closed.