Skip to content

Commit 2deb31d

Browse files
committed
fix: ! do nothing when item is postponed to a date that is already set
1 parent b4b5ee9 commit 2deb31d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ui/Menus/PostponeMenu.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ export class PostponeMenu extends TaskEditingMenu {
5151

5252
if (task[dateFieldToPostpone]?.isSame(postponedDate, 'day')) {
5353
item.setChecked(true);
54+
// Workaround solution for https://github.com/obsidian-tasks-group/obsidian-tasks/issues/2816
55+
// Do nothing when the checked item is clicked
56+
item.onClick(() => null);
5457
}
5558
}
5659
};

0 commit comments

Comments
 (0)