KamoCRM

Eliminate removeChild DOM conflict in PDF thumbnail rendering

Fixkamo-internal
Shipped
12 ஏப்ரல், 2026 அன்று 2:38 AM UTC
Author
kamo
Commit
129d283

Replace container.innerHTML + appendChild pattern in ThumbnailCanvas with a React-managed <canvas> ref. The old approach cleared React-owned DOM nodes directly, causing React reconciliation to fail when it tried to remove the now-missing Typography loading node. Also add a pending-promise guard to loadPdfJs() in both components so concurrent calls share a single script injection instead of appending duplicate module scripts to document.head.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing