embed icon indicating copy to clipboard operation
embed copied to clipboard

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

Open Haraldson opened this issue 4 years ago • 4 comments

I paste once. The URL is inserted twice.

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

Haraldson avatar Dec 15 '21 15:12 Haraldson

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

Akash187 avatar May 04 '22 18:05 Akash187

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.

Akash187 avatar May 05 '22 10:05 Akash187

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

Haraldson avatar May 05 '22 10:05 Haraldson

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.

Akash187 avatar May 05 '22 10:05 Akash187