Skip to content

Commit 52d8ad9

Browse files
authored
fix: correct completion of todo items (#3018)
1 parent 0bad7e5 commit 52d8ad9

File tree

1 file changed

+2
-1
lines changed
  • packages/mgt-components/src/components/mgt-todo

1 file changed

+2
-1
lines changed

packages/mgt-components/src/components/mgt-todo/mgt-todo.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ export class MgtTodo extends MgtTasksBase {
385385
complete: isCompleted
386386
});
387387

388-
const taskCheckContent = isCompleted ? html`${getSvg(SvgIcon.CheckMark)}` : html`${getSvg(SvgIcon.Radio)}`;
388+
const taskCheckContent = html`${getSvg(SvgIcon.CheckMark)}`;
389389

390390
return html`
391391
<div class=${taskClasses} @blur="${this.handleBlur}">
@@ -595,6 +595,7 @@ export class MgtTodo extends MgtTasksBase {
595595

596596
const taskIndex = this._tasks.findIndex(t => t.id === task.id);
597597
this._tasks[taskIndex] = task;
598+
await this._task.run();
598599
};
599600

600601
private readonly removeTask = async (taskId: string): Promise<void> => {

0 commit comments

Comments
 (0)