Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rows disappering with combined group and editable widget #487

Closed
terwarf opened this issue Jan 24, 2014 · 1 comment
Closed

Rows disappering with combined group and editable widget #487

terwarf opened this issue Jan 24, 2014 · 1 comment

Comments

@terwarf
Copy link

terwarf commented Jan 24, 2014

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.

@Mottie
Copy link
Owner

Mottie commented Jan 24, 2014

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');
    });
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants