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

Regular pasted URLs (not matcing any activated service) are inserted twice #78

Open
Haraldson opened this issue Dec 15, 2021 · 4 comments

Comments

@Haraldson
Copy link

I paste once. The URL is inserted twice.

That’s it. That’s the entire issue.

@Akash187
Copy link

Akash187 commented May 4, 2022

Yes, I am also facing the same.
Also once you paste the link embed renders but the link is not deleted.

@Akash187
Copy link

Akash187 commented May 5, 2022

After a thorough inspection, I found that this issue is due to react 18 strict mode. Removing strict mode fixes the issue. Also, try to build the app and check if this fixes in case removing strict mode did not work.

In my case, even the editor is getting rendered twice.
Editorjs React 18 bug

@Haraldson can you confirm that you faced this issue while using react or not and which version.

@Haraldson
Copy link
Author

I face(d?) this issue on React 17, so it’s not about React 18.

@Akash187
Copy link

Akash187 commented May 5, 2022

Thanks, @Haraldson for me react 17 seems to work fine with strict mode. you can check this repo https://github.com/Walkthroughs/editorjs-with-react
I am facing this on React 18 only.

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

No branches or pull requests

2 participants