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
2 changed files with 3 additions and 3 deletions

View File

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