Skip to content

Commit

Permalink
Fix arrows check for annotation nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasl committed Sep 23, 2024
1 parent 5272894 commit dffad7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/arrows.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function renderArrows(container) {
let arrow = document.createElementNS(SVGNS, 'path')
arrow.classList.add('arrow')

if (link.closest('.annotation') != null) {
if (link.parentNode.classList.contains('annotation')) {
arrow.classList.add('rei')
}

Expand Down

0 comments on commit dffad7b

Please sign in to comment.