Fix tasks: checkbox state does not change when clicked.

This commit is contained in:
John Livingston 2025-05-21 16:36:44 +02:00
parent 4bebc18c67
commit a5ede49402
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,8 @@
* Fix #503: set custom emojis max height to text height + bigger when posted alone * 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: 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 #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 ## 12.0.4

View File

@ -23,8 +23,7 @@ export function tplMucTask (el, task) {
type="checkbox" type="checkbox"
class="form-check-input" class="form-check-input"
.checked=${done === true} .checked=${done === true}
@click=${(ev) => { @click=${(_ev) => {
ev?.preventDefault()
task.set('done', !done) task.set('done', !done)
task.saveItem() task.saveItem()
}} }}