jbetancur / react-data-table-component

A responsive table library with built-in sorting, pagination, selection, expandable rows, and customizable styling.
https://react-data-table-component.netlify.app
Apache License 2.0
2.05k stars 413 forks source link

pageIndex should not be set to 1 when user want to use own sort function #1111

Closed andy-yu-y closed 1 year ago

andy-yu-y commented 2 years ago

Use below paras to try to override sort fuction, handleSort is the method which i would like to use. sortServer onSort={handleSort}

But before handleSort is called, the key para pageIndex is auto changed to 1 which is not expected. Is there anyway can avoid this behaviors? I would like to have full control of sort function inside handleSort method.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

andy-yu-y commented 1 year ago

issue still there

ahmed-kareem9 commented 11 months ago

@andy-yu-y have you find any solution for this?