ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
25.38k stars 2.17k forks source link

iPhone double input with Japanese IME when using Focus extension #2780

Open umutto opened 2 years ago

umutto commented 2 years ago

What’s the bug you are facing?

Editor with the focus extension duplicates text text in iPhone when Japanese IME is used. Specifically when the done button is tapped without selecting one of the keyboard recommendations. I'll attach a screen recording below that explains it better than I do.

https://user-images.githubusercontent.com/23720304/168240537-716c9326-5dc8-4dac-b1e8-7d1c319a270e.MP4

Which browser was this experienced in? Are any special extensions installed?

Safari on iOS (v15.4.1) Works fine on other browsers.

How can we reproduce the bug on our side?

Can you provide a CodeSandbox?

Issue can be reproduced using the official demo here: https://tiptap.dev/api/extensions/focus#usage

What did you expect to happen?

Only one character should be entered (this works fine in Android and Windows PC)

Anything to add? (optional)

I have the same problem in my project, tried updating everything to the latest version. Tried to reproduce the problem with other extensions but they all worked fine. Also it may be similar to this problem in ProseMirror but not really sure. https://github.com/ProseMirror/prosemirror/issues/944

Thanks for a great library btw!<3

Did you update your dependencies?

Are you sponsoring us?

bdbch commented 2 years ago

Hey @umutto thanks for reporting!

We'll try to reproduce the issue and work on a fix! 🔥

bdbch commented 2 years ago

I wasn't able to test this as I don't have a physical iPhone around. Maybe @svenadlung could delegate this issue to someone who has an iPhone in our team and resolve this bug.

Otherwise I'd invite everyone in the community to try to fix this issue.

svenadlung commented 1 year ago

I was able to reproduce it. However, I do not have a solution yet 😬.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days

bdbch commented 1 year ago

This issue is not stale yet - issue persists

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days

bdbch commented 1 year ago

bump

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days

umutto commented 1 year ago

Bump, issue still persists.