Mottie/tablesorter

Rows disappering with combined group and editable widget

terwarf opened this issue · 1 comments

Steps to reproduce:

  1. http://jsfiddle.net/NtgFr/3/
  2. collapse one of the two groups.
  3. edit a value in the remaining fields
  4. press enter

Thanks for the great plugin, btw.

Hi @terwarf!

Thanks for reporting this issue! I'll get it fixed in the next update.

For now, you can work around this issue by triggering an applyWidgets method like this (updated demo):

$(function () {
    $('table').tablesorter({
        theme: "blue",
        sortList: [[1, 0]],
        sortForce: [[1, 0]],
        widgets: ['group', 'editable'],
        widgetOptions: {
            editable_columns: [0, 1, 2],
            editable_enterToAccept: true,
            editable_autoResort: false,
            editable_noEdit: 'no-edit',

            group_collapsible: true,
            group_collapsed: false
        }
    }).on('editComplete', function () {
        $(this).trigger('applyWidgets');
    });
});