carta icon indicating copy to clipboard operation
carta copied to clipboard

TypeError: Cannot read properties of null (reading 'scrollWidth')

Open cameronjweeks opened this issue 1 year ago • 1 comments

Error on load

carta-md.js?v=7095f9a7:2455 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'scrollWidth') at overflowing (carta-md.js?v=7095f9a7:2455:41) at carta-md.js?v=7095f9a7:2456:14 at carta-md.js?v=7095f9a7:186:32

cameronjweeks avatar Apr 25 '24 01:04 cameronjweeks

Hello, can you provide more information as well as a minimal reproducible example? It looks like a resize event is fired before the component is mounted, which should not happen.

BearToCode avatar Apr 25 '24 15:04 BearToCode

Hi @BearToCode I am also getting this error, please see this stack blitz which reproduces the error: https://stackblitz.com/edit/vitejs-vite-bgsby6?file=src%2FApp.svelte

WillWilli avatar Jun 05 '24 23:06 WillWilli

Should be fixed now. The example is now working in v4.1.1

BearToCode avatar Jun 06 '24 07:06 BearToCode