question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keep filtered items position from changing when dragging other items

See original GitHub issue

Can we make it so filtered items keep their position relative to other items in the list.

For example: Before sort

1. Sortable 1
2. Filtered
3. Sortable 2
4. Sortable 3

After sort

3. Sortable 2
2. Filtered
1. Sortable 1
4. Sortable 3

Here we’ve moved number 1 to position three and number 3 to position 1. Even if we try to move it to position 2 it should not work, filtered items should be removed from the sortable list. Much like they are pinned in place.

Similar to this issue: https://github.com/RubaXa/Sortable/issues/273

So my real question: is there a way to do this right now?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

3reactions
RubaXacommented, Apr 15, 2015

@MaazAli http://jsbin.com/tuyafe/2/edit?js,output — this is what you had in mind?

0reactions
voidalecommented, Aug 16, 2015

+1 this is an awesome features I use divs and have a <h4> tag before each div that I want o skip from sorting it out. Just needs to be static 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

maintaining a cell reference despite changing the cell location ...
e.g.: I reference cell A1 filled with the value 1 to which I reference in another cell; I now sort rows in a...
Read more >
Prevent Images and Shapes from Resizing or Moving in Excel
In the window that opens, go to the Properties section from the left hand menu. Then look to the top of the window....
Read more >
How to stop excel from changing a range when you drag a ...
I'm trying to normalize a set of columns of data in an excel spreadsheet. I need to get the values so that the...
Read more >
Problem Pasting in Excel Filtered List - Contextures Blog
It looks like a simple task – filter a list, so you an see the items you're interested in. Then, copy data from...
Read more >
Amazing Excel FILTER Function + Trick to Rearrange Column ...
Excel's FILTER function is incredible. It enables you to extract a subset of your data based on criteria you specify.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found