-
Notifications
You must be signed in to change notification settings - Fork 159
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
How to off auto sorting after dropping an item from one column to another? #12
Comments
Hey Vasyl, Sorry for the delay, its been a busy couple of weeks. Cheers |
@BrockReece Once you drag and drop it auto sorts it based on id. Not considering where it was actually dropped. I believe that's what @vasiliypekhterev meant |
@BrockReece same question here. How do we disable it so when the block is placed somewhere it stays there instead of being sorted by it's id? Can we reverse the ordering to desc instead? Or is there a way to specify the block property that should be used for ordering the block when dropped? |
Hmm, yeah I see. I think this is because the parent is passing the Is this a cosmetic issue or is it a functional issue (ie do we need to keep track of the order of the kanban blocks for prioritising?) If this is a cosmetic issue, we could clone the https://codesandbox.io/s/9yy4vx132r If it is a functional issue, I may have to have a bit more of a think about it. |
Personally I think it will be best to have an option that specifies the default ordering if possible. In my case I use it for listing ordered products in different manufacturing processes.. It works fine this way too so more of a cosmetic issue in my case .. but it will be really cool if we can somehow tell the component to order the blocks by different prop of the blocks not the id.. |
I had the same issue and forked the project to make it look more like what I needed: |
I 100% agree with @reppair. I have the same problem too and very need to make the items default order list by date for example. |
Finaly I made it byself. I sorted my items by activity data. Change vue-kanban source code "node_modules/vuekanban/src/components/Kanban.vue": // MrStonkus personal change for sorting by activityDate
},my data |
I want to avoid auto sorting, but can't find the way.
Could you help me with this issue?
Thank you in advance,
Vasyl
The text was updated successfully, but these errors were encountered: