Fix dragging cursors
This commit is contained in:
parent
ac8a912c18
commit
b3c1013cac
3 changed files with 12 additions and 0 deletions
|
@ -10,6 +10,7 @@ export default function initConnectionsQuestions() {
|
|||
|
||||
Sortable.create(list, {
|
||||
swap: true,
|
||||
dragClass: 'connections-element-dragging',
|
||||
onUpdate: (event) => {
|
||||
const newOrder = Array.from(event.to.children).map((el) => Number.parseInt(el.dataset.id))
|
||||
submitValue(submitUrl, { order: newOrder })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue