We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 989f11b commit 86bffd5Copy full SHA for 86bffd5
src/Obsidian/LivePreviewExtension.ts
@@ -98,7 +98,8 @@ class LivePreviewExtension implements PluginValue {
98
// updates correctly.
99
// As a "fix", we set the checkbox's `checked` state *explicitly* after a
100
// timeout in case we need to revert Obsidian's possibly wrongful reversal.
101
- if (toggled.length === 1) {
+ const needToForceCheckedProperty = toggled.length === 1;
102
+ if (needToForceCheckedProperty) {
103
// The smoke tests show the workaround is only needed when the event replaces
104
// a single task line.
105
// (When one task line becomes two because of recurrence, both the
0 commit comments