Skip to content

Emoji not always inserted at the correct position #4265

Open

Description

Steps to reproduce

  1. Enter a chat room
  2. Type some text "abcdef"
  3. Set the cursor behind "c"
  4. Pick an emoji from the picker
  5. Repeat with "b", "a" and other letters

Expected behaviour

Emoji always inserted at the cursor's position

Actual behaviour

Often times the emoji is inserted at the end of the field.

Talk app

git master 4e290c0 (10.0.0)

Browser

Chromium 85.0.4183.102

I see in NewMessageForm.vue that there's some gymnastics required to insert emojis, so I suspect that not all the cases are covered. It is also possible that sometimes the browser's internal selection/range is lost when clicking outside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions