Responsive inline editing click-to-edit fix

Responsive inline editing click-to-edit fix

dsteinbergdsteinberg Posts: 20Questions: 6Answers: 1

Hi! On the responsive inline editing page, there's a chunk of code to perform inline editing when you click a field.

When you click the child row, it's technically a td element but not one targetable by editor so you get a dataTables.editor.min.js:284 Uncaught TypeError: Cannot read property 'contents' of undefined(…) error (try it on the demo page!)

My fix is to change the selector to the following: tbody td:not(.child), tbody span.dtr-data

Hope this helps!

Replies

  • allanallan Posts: 63,819Questions: 1Answers: 10,517 Site admin

    Thanks for pointing this out! I'll have it fixed in the next release.

    Allan

This discussion has been closed.