How to disable real time sorting (Freeze sort for editing) ? #3034
Unanswered
samselfridge-cnc
asked this question in
Q&A
Replies: 1 comment
-
bump for this. Implemented it with manualSort, but its causing other issues in the table that using the native sort would most likely avoid. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to only change the sort order when the column headers are clicked? My use case has a default initial sort, but can also sort by several editable columns. When editing values in these columns, onBlur the whole row goes to its expected sorted value, which is disorienting if the user was expecting to tab into the next cell.
I want to use the react-table built in sorting, but ONLY change sorted order when the header are clicked.
All I could find was this way of doing it without useSortBy hook and I'm not familiar enough with the old implmentation to translate it over:
https://spectrum.chat/react-table/general/is-there-any-way-to-freeze-sorting~46a5bab8-7661-46ff-a508-3b6be3ad50bd
Is there just a simple setting somewhere that I missed? This seems like it should be pretty easy to do.
Example: I have a list of items and their price. I want to sort by price and then re-price and re-label the highest cost items.
Sort by Price:
But if I change the price label, it moves the whole row
How can I get it so I can edit the sorted column value and have the table retain the existing order?
Beta Was this translation helpful? Give feedback.
All reactions