Skip to content

Commit 2990429

Browse files
committed
fix: query selector needs quotes
1 parent 7582eb7 commit 2990429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/modifiers/highlight-active-title.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default modifier(function highlightActiveTitle(element, [toc]) {
1616
// Track all content sections by id
1717
toc.forEach((tocItem) => {
1818
const tocSection = document.querySelector(
19-
`section[aria-labelledby=${tocItem.id}]`
19+
`section[aria-labelledby="${tocItem.id}"]`
2020
);
2121
if (tocSection) {
2222
observer.observe(tocSection);

0 commit comments

Comments
 (0)