From 32edef2d383292531e821b3a471ba30504ac3ea9 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 17 Feb 2024 11:38:08 +0100 Subject: [PATCH] fix(editor): set default id of tasklist items This fixes a bug where all tasklist items would have the same id which would check all of them when checking one of them. --- frontend/src/components/input/editor/TipTap.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/input/editor/TipTap.vue b/frontend/src/components/input/editor/TipTap.vue index 68d2cf60b..7a95159d1 100644 --- a/frontend/src/components/input/editor/TipTap.vue +++ b/frontend/src/components/input/editor/TipTap.vue @@ -394,7 +394,7 @@ const editor = useEditor({ return { ...this.parent?.(), id: { - default: createRandomID, + default: () => createRandomID(), parseHTML: element => element.getAttribute('data-id'), renderHTML: attributes => ({ 'data-id': attributes.id,