Fix dragging cursors

This commit is contained in:
Charlotte Van Petegem 2025-05-25 11:15:38 +02:00
parent ac8a912c18
commit b3c1013cac
Signed by: chvp
SSH key fingerprint: SHA256:s9rb8jBVfdahqWHuBAcHCBP1wmj4eYQXZfqgz4H3E9E
3 changed files with 12 additions and 0 deletions

View file

@ -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 })