mantine
mantine copied to clipboard
Rte/image uploader index error
There are at least two error reports regarding the same error when uploading images (for me, specifically pasting in images) into rte.
Error: Cannot read properties of null (reading 'index')
They were marked closed but the issue persists for me, even when running mantine in storybook. Changing the settimeout period on the handlePaste function of ImageUploader.ts to anything other than 0 resolves the issue. I've set it to 1ms. All tests pass, all three image upload methods work as intended.
https://github.com/mantinedev/mantine/issues/1508 https://github.com/mantinedev/mantine/issues/1386