Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

244
Views
Vuedraggable / SortableJS ability to move elements in and out of groups

I am using Vuedraggable (Sortable JS) to try and accomplish grouping of items. The items themselves shouldn't have children (as the demos for Sortable JS use), but instead should be grouped in a parent "group" type object. I'm having issues stopping groups from being dragged inside of other groups, as at the first level, both the Group Objects and Form Objects are in the same "sortable group".

  1. There are Form Objects and Group Objects at the same 1st level Form
  2. Objects and Group Objects should be sortable at the first level Form
  3. Objects should be draggable into and out of groups
  4. Groups should NOT be able to be dragged inside of other groups

#4 is the current issue. Its currently possible to drag one group inside another group. Its not easy to do... if you first drag an object from one group into another group, this seems to make it easier to subsequently grab the fist group and drag it into the 2nd group.

Here is a codesandbox illustrating the issue: https://codesandbox.io/s/vuedraggable-nested-simplified-wc-tr6mx?file=/src/components/NestedDraggable.vue

enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Looks like the answer is to use a function in the pull/put configuration of the group

Working CodeSandbox

References:
https://github.com/SortableJS/Vue.Draggable#props
https://github.com/SortableJS/Sortable#options

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!