Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rte/image uploader index error #2529

Merged
merged 1 commit into from Sep 24, 2022

Conversation

N-Argyle
Copy link
Contributor

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.

#1508
#1386

@rtivital rtivital changed the base branch from dev to master September 22, 2022 06:27
@rtivital rtivital merged commit bce104d into mantinedev:master Sep 24, 2022
@rtivital
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants