We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ff3649 commit 802ed40Copy full SHA for 802ed40
1 file changed
public/js/extra.js
@@ -253,7 +253,11 @@ export function finishView (view) {
253
if (/^\s*\[[x ]\]\s*/.test(html)) {
254
li.innerHTML = html.replace(/^\s*\[ \]\s*/, `<input type="checkbox" class="task-list-item-checkbox "${disabled}><label></label>`)
255
.replace(/^\s*\[x\]\s*/, `<input type="checkbox" class="task-list-item-checkbox" checked ${disabled}><label></label>`)
256
- li.setAttribute('class', 'task-list-item')
+ if (li.tagName.toLowerCase() !== 'li') {
257
+ li.parentElement.setAttribute('class', 'task-list-item')
258
+ } else {
259
+ li.setAttribute('class', 'task-list-item')
260
+ }
261
}
262
if (typeof editor !== 'undefined' && window.havePermission()) { $(li).find('input').change(toggleTodoEvent) }
263
// color tag in list will convert it to tag icon with color
0 commit comments