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 b61fdaf commit baccdb0Copy full SHA for baccdb0
src/components/codeBlock/index.tsx
@@ -31,7 +31,7 @@ function getCopiableText(element: HTMLDivElement) {
31
if (
32
parent.classList.contains('no-copy') ||
33
parent.classList.contains('hidden') ||
34
- (parent as HTMLElement).dataset?.onboardingOptionHidden
+ parent.hasAttribute('data-onboarding-option-hidden')
35
) {
36
return NodeFilter.FILTER_REJECT;
37
}
0 commit comments