Rows disappering with combined group and editable widget
terwarf opened this issue · 1 comments
terwarf commented
Steps to reproduce:
- http://jsfiddle.net/NtgFr/3/
- collapse one of the two groups.
- edit a value in the remaining fields
- press enter
Thanks for the great plugin, btw.
Mottie commented
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');
});
});