Preserve new sortable DIV so when filter is removed it remains the same #2205
Unanswered
half-metal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using sortable with data-id, if you move a div from a source table to a target table, and that source table had a filter on for the various rows, then if you remove that filter then the target table with the moved div will revert back to the div that was before the filter.
So imagine these rows in the source and target tables
I put in a filter for "Gr" on Source Table 2
Then only Green shows up on Source Table 2
Then I drag and drop that into Target Table 1, so now you have:
Then I remove the filter Target Table 1 becomes
Not ideal as the div that was Green is now Yellow. I could do a DB save and reload each table, but that's not reactive in my mind doing extra DB calls and not great for mobile. Is there some way for Sortable to freeze a table or hold in place the DIV that has been added to the Target Table?
Beta Was this translation helpful? Give feedback.
All reactions