mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
fix(components): Fix copy button copies outdated snippet
https://github.com/storybookjs/storybook/issues/18829 Fixed a regression introduced in 5f5cf81060afb6124b1f2382accbe2b2e7a47003. `highlightableCode` was missing in dependencies array therefore the copied code snippet was fixed to the first-rendered one.
This commit is contained in:
parent
c8bcbeb510
commit
9783a08a8f
@ -177,7 +177,7 @@ export const SyntaxHighlighter: FC<SyntaxHighlighterProps> = ({
|
||||
})
|
||||
.catch(logger.error);
|
||||
},
|
||||
[]
|
||||
[highlightableCode]
|
||||
);
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user