Skip to content

Commit 91ce5a6

Browse files
committed
Fix not being able to open Mermaid diagrams in a tab or save them
1 parent f9eb212 commit 91ce5a6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/vast-paths-open.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"kilo-code": patch
3+
---
4+
5+
Fix not being able to open Mermaid diagrams in a tab or save them

webview-ui/src/components/common/MermaidBlock.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ export default function MermaidBlock({ code: originalCode }: MermaidBlockProps)
284284
{/* kilocode_change start switched from ref to dangerouslySetInnerHTML */}
285285
<SvgContainer
286286
onClick={handleClick}
287+
ref={containerRef}
287288
$isLoading={isLoading}
288289
dangerouslySetInnerHTML={{ __html: svgContent }}
289290
/>

0 commit comments

Comments
 (0)