From b615d3dd7a10d0aece318129deed46e7575402ac Mon Sep 17 00:00:00 2001 From: xiaoshi <115949669+xiaoshi930@users.noreply.github.com> Date: Sat, 29 Nov 2025 20:08:41 +0800 Subject: [PATCH] Update xiaoshi-device-todo-card.js --- xiaoshi-device-todo-card.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/xiaoshi-device-todo-card.js b/xiaoshi-device-todo-card.js index d9d95b9..21e9cb5 100644 --- a/xiaoshi-device-todo-card.js +++ b/xiaoshi-device-todo-card.js @@ -1120,7 +1120,10 @@ class XiaoshiTodoCard extends LitElement { this._updateTodoItem(todoData.entity_id, item.summary || item.uid, e.target.checked ? 'completed' : 'needs_action')} + @change=${(e) => { + this._updateTodoItem(todoData.entity_id, item.summary || item.uid, e.target.checked ? 'completed' : 'needs_action'); + this._handleClick(); + }} style="margin-right: 8px; margin-top: 2px;" /> ${isEditing ? html` @@ -1153,6 +1156,7 @@ class XiaoshiTodoCard extends LitElement { @input=${(e) => { this._editingItem.due = e.target.value; this.requestUpdate(); + this._handleClick(); }} />