diff --git a/src/client/app/composables/codeGroups.ts b/src/client/app/composables/codeGroups.ts index 2c5c2cb0..e4bd5c5c 100644 --- a/src/client/app/composables/codeGroups.ts +++ b/src/client/app/composables/codeGroups.ts @@ -11,7 +11,9 @@ export function useCodeGroups() { const i = Array.from(group?.querySelectorAll('input') || []).indexOf(el) const current = group?.querySelector('div[class*="language-"].active') - const next = group?.querySelectorAll('div[class*="language-"]')?.[i] + const next = group?.querySelectorAll( + 'div[class*="language-"]:not(.language-id)' + )?.[i] if (current && next && current !== next) { current.classList.remove('active')