From a5ede4940238c690163e24f99b61a63afca40362 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Wed, 21 May 2025 16:36:44 +0200 Subject: [PATCH] Fix tasks: checkbox state does not change when clicked. --- CHANGELOG.md | 3 ++- conversejs/custom/plugins/tasks/templates/muc-task.js | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e11a967c..0298b84c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,8 @@ * Fix #503: set custom emojis max height to text height + bigger when posted alone * Fix: Converse bottom panel messages not visible on new Peertube v7 theme (for example for muted users) * Fix #75: New short video urls makes it difficult to use the settings «Activate chat for these videos». -* Fix: moderation notes: fix filter button wrongly displayed on notes without associated occupant. +* Fix moderation notes: fix filter button wrongly displayed on notes without associated occupant. +* Fix tasks: checkbox state does not change when clicked. ## 12.0.4 diff --git a/conversejs/custom/plugins/tasks/templates/muc-task.js b/conversejs/custom/plugins/tasks/templates/muc-task.js index 7c8d02da..0bbcf34b 100644 --- a/conversejs/custom/plugins/tasks/templates/muc-task.js +++ b/conversejs/custom/plugins/tasks/templates/muc-task.js @@ -23,8 +23,7 @@ export function tplMucTask (el, task) { type="checkbox" class="form-check-input" .checked=${done === true} - @click=${(ev) => { - ev?.preventDefault() + @click=${(_ev) => { task.set('done', !done) task.saveItem() }}