Skip to content

New row shows up on wrong position when paging is enabled and the table was sorted #4827

@Remigius1974

Description

@Remigius1974

Describe the bug
When paging is enabled and a column was sorted, addRow inserts the new row at wrong position. Even when there are fewer items then the page size. When there is no sorting applied, it works fine, too.

Tabulator Info
Tabulator v6.3.1

Working Example
JSFiddle: https://jsfiddle.net/2yroewgh/

To Reproduce

  1. Open the fiddle
  2. Sort by column "Last name"
  3. Open the context menu on "Dort" user and "Add row above"
  4. The new row is insertet at the very top of the table.

Expected behavior
The new row should be inserted above the "Dort" user.
When paging is not enabled it works fine.
When no sorting was done before it works fine.

Desktop (please complete the following information):

  • OS: XUbuntu
  • Browser Chrome
  • Version 143.0.7499.40

Metadata

Metadata

Assignees

No one assigned

    Labels

    Possible BugA possible bug that needs investigation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions