Skip to content

Commit

Permalink
fix: correct completion of todo items (#3018)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnickii authored Feb 5, 2024
1 parent 0bad7e5 commit 52d8ad9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mgt-components/src/components/mgt-todo/mgt-todo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export class MgtTodo extends MgtTasksBase {
complete: isCompleted
});

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

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

const taskIndex = this._tasks.findIndex(t => t.id === task.id);
this._tasks[taskIndex] = task;
await this._task.run();
};

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

0 comments on commit 52d8ad9

Please sign in to comment.