-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Disable Sorting on a click #40
Comments
Are you modifying any item of the list you're sorting on click? If so - that will trigger sorting. |
Nope, i am not modifying but i am getting the id of the item that i clicked. |
Same problem when i click on the thead tr element... , that trigger sorting, how to solve this bug ? |
I am not using this pipe techniques for sorting. In angular, while scrolling the long list change detection event will be triggered. An angular pipe runs its functionality(in this case sorting) on each change detection event. That's why is it flickering while clicking or scrolling also. I am using another technique suggested by many angular developers. That is you can write your sorting logic in the component itself. |
Could someone test this issue with version |
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. |
I am using angular5 and I am sorting an array of objects using ngx-order-pipe for a table data. But data is again sorting when clicking on the table row. how to disable the sorting with a click?
The text was updated successfully, but these errors were encountered: