Skip to content

Commit 51ee3ad

Browse files
authored
🐛 switch to sortablejs-vue3 as it is more actively maintained to … (#78)
* 🐛 switch to sortablejs-vue3 as it is more actively maintained to try and fix rendering issues of checklist when deployed * 🐛 fix format --------
1 parent 6853ecd commit 51ee3ad

File tree

3 files changed

+30
-22
lines changed

3 files changed

+30
-22
lines changed

personalization-webcomponents/package-lock.json

Lines changed: 22 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

personalization-webcomponents/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"@muenchen/muc-patternlab-vue": "5.6.0",
2121
"@vueuse/core": "13.6.0",
2222
"vue": "3.5.18",
23-
"vuedraggable": "4.1.0"
23+
"sortablejs": "^1.15.6",
24+
"sortablejs-vue3": "^1.3.0"
2425
},
2526
"devDependencies": {
2627
"@cyclonedx/cyclonedx-npm": "4.0.0",

personalization-webcomponents/src/components/ChecklistList.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="container">
3-
<draggable
4-
v-model="list"
3+
<sortable
4+
:list="list"
55
tag="ul"
66
class="list"
77
:animation="200"
@@ -25,13 +25,13 @@
2525
:disabled="disabled"
2626
@change="() => onSelectChange(element.serviceID)"
2727
/>
28-
<label
28+
<span
2929
class="label-text"
3030
@click.prevent="openDialog(element)"
3131
style="cursor: pointer"
3232
>
3333
<b>{{ element.title }}</b>
34-
</label>
34+
</span>
3535

3636
<!-- Drag-Handle Icon -->
3737
<span
@@ -43,7 +43,7 @@
4343
</span>
4444
</li>
4545
</template>
46-
</draggable>
46+
</sortable>
4747

4848
<!--todo-->
4949
<!-- Placeholder simple dialog box (modal)-->
@@ -65,8 +65,8 @@
6565
import type DummyChecklistItem from "@/api/dummyservice/DummyChecklistItem.ts";
6666
6767
import { MucIcon } from "@muenchen/muc-patternlab-vue";
68+
import { Sortable } from "sortablejs-vue3";
6869
import { defineEmits, ref, watch } from "vue";
69-
import draggable from "vuedraggable";
7070
7171
const props = withDefaults(
7272
defineProps<{

0 commit comments

Comments
 (0)