Skip to content

Commit 1fb756f

Browse files
committed
[docs] Never highligh preview if not shown
1 parent 480fa73 commit 1fb756f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/modules/components/Demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ function Demo(props) {
544544
<HighlightedCode
545545
className={classes.code}
546546
id={demoSourceId}
547-
code={codeOpen ? demoData.raw : jsx}
547+
code={showPreview && !codeOpen ? jsx : demoData.raw}
548548
language={demoData.sourceLanguage}
549549
/>
550550
</Collapse>

0 commit comments

Comments
 (0)