Skip to content

Commit 124cd68

Browse files
committed
Listen only for task list checkbox changes
1 parent 7fb05c8 commit 124cd68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/task-lists-element.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default class TaskListsElement extends HTMLElement {
1111
this.addEventListener('change', event => {
1212
const checkbox = event.target
1313
if (!(checkbox instanceof HTMLInputElement)) return
14+
if (!checkbox.classList.contains('task-list-item-checkbox')) return
1415

1516
this.dispatchEvent(
1617
new CustomEvent('task-lists:check', {

0 commit comments

Comments
 (0)