ueberdosis / tiptap

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

[PRO]: Deleting an Emoji/Mention causes editor to loose focus #5550

Open TheotimeColin opened 2 months ago

TheotimeColin commented 2 months ago

Affected Packages

emojis, mentions

Version(s)

2.0.0

Description of the Bug

When deleting an Emoji or a Mention, I loose focus and the keyboard disappears, then reappears. This causes frequent misslicks as it moves the interface (see video attached).

Tested in an Android Chrome.

https://github.com/user-attachments/assets/c099eecc-e271-4330-95e9-62475cace2b3

Browser Used

Chrome

Code Example (Preferred)

No response

Expected Behavior

Not losing focus when deleting nodes.

Additional Context (Optional)

No response

Dependency Updates

nperez0111 commented 2 months ago

Interesting, yea mobile support has always been difficult. We do have some kludges for mobile support & prosemirror is always working on making that better, but I didn't find anything here that we've added for this.

The emoji extension is a inline node so I wonder is this is an issue with others like it (maybe mentions?)

TheotimeColin commented 2 months ago

Interesting, yea mobile support has always been difficult. We do have some kludges for mobile support & prosemirror is always working on making that better, but I didn't find anything here that we've added for this.

The emoji extension is a inline node so I wonder is this is an issue with others like it (maybe mentions?)

Yes, it does exactly the same with mentions!

nperez0111 commented 2 months ago

Well that narrows things down. I wonder whether this is problem with Tiptap or prosemirror (our base library).Maybe this example might be able to show us where the issue is? https://prosemirror.net/examples/dino/

romansp commented 2 months ago

May be related to https://github.com/ueberdosis/tiptap/issues/677.

TheotimeColin commented 2 months ago

Well that narrows things down. I wonder whether this is problem with Tiptap or prosemirror (our base library).Maybe this example might be able to show us where the issue is? https://prosemirror.net/examples/dino/

I don't seem to have the issue on the example

robert-barahona commented 2 weeks ago

The same is happening for our team with mentions