Skip to content

Commit

Permalink
fix: excludes mobile toc button for search marks, fixes #473
Browse files Browse the repository at this point in the history
  • Loading branch information
weareoutman committed Jan 16, 2025
1 parent 401f4d4 commit b8dd155
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ export default function SearchBar({
const mark = new Mark(root);
mark.unmark();
if (keywords.length !== 0) {
mark.mark(keywords);
mark.mark(keywords, {
exclude: [".theme-doc-toc-mobile > button"],
});
}

// Apply any keywords to the search input so that we can clear marks in case we loaded a page with a highlight in the url
Expand Down

0 comments on commit b8dd155

Please sign in to comment.