You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could be wrong on this, but let me explain my doubt. Let's say I have a list of 3 elements
Element 1
Element 2
Element 3
As soon as I click on Element 1 and I drag it down over Element 3, my expectation is that the Element 1 goes at third position (and that happens) however what usually happens in a sorting list is that Element 3 should shift up to the second position, instead of swapping its position with the first element
To be clear the list after the sort appears this way:
Element 3
Element 2
Element 1
Though I would expect this:
Element 2
Element 3
Element 1
Does this make sense? I guess it could be probably be achieved with #3
thank you! :)
The text was updated successfully, but these errors were encountered:
I think its best to make a prop called behaviour that chooses the function based on string "swap"/"sort" or may be a custom function!!
for behaviour="swap"
1,2,3 to 3,2,1 (click:1, up:3)
Hello!
Great component, thanks for your work!
I could be wrong on this, but let me explain my doubt. Let's say I have a list of 3 elements
As soon as I click on Element 1 and I drag it down over Element 3, my expectation is that the Element 1 goes at third position (and that happens) however what usually happens in a sorting list is that Element 3 should shift up to the second position, instead of swapping its position with the first element
To be clear the list after the sort appears this way:
Though I would expect this:
Does this make sense? I guess it could be probably be achieved with #3
thank you! :)
The text was updated successfully, but these errors were encountered: