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

Inconsistent cursor position when emoji window is closed when clicking on emoji button #23949

Closed
florianduros opened this issue Dec 9, 2022 · 4 comments
Labels
A-Composer A-Rich-Text-Editor Issues with the new rich text editor, also known as the WYSIWYG editor O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Z-Labs

Comments

@florianduros
Copy link
Member

florianduros commented Dec 9, 2022

Steps to reproduce

In plain text mode of the new rich text editor OR in the current composer (reproducible in both composer)

  1. Click on the emoji button
  2. Click on a emoji
  3. Click again in the emoji

Outcome

What did you expect?

I expect the cursor to be positioned after the inserted emoji

What happened instead?

The cursor is at the beginning of the composer

Cursor is at the wrong position after inserting an emoji

emoji1

Emoji inserted at wrong position (cursor is at the end)

emoji2

Operating system

No response

Browser information

No response

URL for webapp

No response

Application version

No response

Homeserver

No response

Will you send logs?

Yes

@florianduros florianduros added T-Defect S-Minor Impairs non-critical functionality or suitable workarounds exist O-Occasional Affects or can be seen by some users regularly or most users rarely Z-Labs A-Rich-Text-Editor Issues with the new rich text editor, also known as the WYSIWYG editor labels Dec 9, 2022
@github-actions github-actions bot added the Z-Labs label Dec 9, 2022
@artcodespace
Copy link

Tested on element nightly (using version 1.1.1 of the rich text editor), no longer an issue so closing.

Screen.Recording.2023-03-30.at.16.15.54.mov

@florianduros
Copy link
Member Author

florianduros commented Mar 30, 2023

@alunturner the issue was reproducible in the two composers (current one and RTE). Maybe only remove the A-Rich-Text-Editor label

@artcodespace
Copy link

Thanks - I didn't spot that it was also in the current composer too. Having said that, I've retested the current composer on nightly and still can't reproduce the issue there either

@florianduros
Copy link
Member Author

Oh perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Composer A-Rich-Text-Editor Issues with the new rich text editor, also known as the WYSIWYG editor O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Z-Labs
Projects
None yet
Development

No branches or pull requests

2 participants