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(); }} />