Skip to content

Commit 352f55e

Browse files
committed
Fix deselection on click
1 parent aaf3c45 commit 352f55e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

annotate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const makeClickHandler = (isHighlight) => {
6464
// Remove .selected from all elements.
6565
const deselectAll = () => {
6666
const selectedComments = document.querySelectorAll('.selected');
67-
selectedComments.forEach(selectedComment => selectedComments[i].classList.remove('selected'))
67+
selectedComments.forEach(selectedComment => selectedComment.classList.remove('selected'))
6868
}
6969

7070
/**

0 commit comments

Comments
 (0)