We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca09a4 commit 1d99e5bCopy full SHA for 1d99e5b
apps/docs/src/composables/useToc.ts
@@ -117,6 +117,8 @@ export function useToc (options: UseTocOptions = {}): UseTocReturn {
117
let currentH3: TocHeading | null = null
118
119
for (const el of elements) {
120
+ if (el.closest('[role="dialog"]')) continue
121
+
122
const id = el.id
123
const text = el.textContent?.trim() ?? ''
124
const level = el.tagName === 'H2' ? 2 : (el.tagName === 'H3' ? 3 : 4)
0 commit comments