Skip to content

Commit

Permalink
Use deep cloning so that link label is preserved
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Nov 26, 2024
1 parent 8885066 commit db3a3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rendermime/src/renderers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ function renderTextual(
// Clone the nodes before storing them in the cache in case if another component
// attempts to modify (e.g. dispose of) them - which is the case for search highlights!
linkedNodes: linkedNodes.map(
node => node.cloneNode() as HTMLAnchorElement | Text
node => node.cloneNode(true) as HTMLAnchorElement | Text
)
});
} else {
Expand Down

0 comments on commit db3a3c0

Please sign in to comment.