Skip to content

[Issue-1429] Resolve Bug for Mention Suggestion Clicks Overwriting Text#1440

Open
nickbely-novata wants to merge 1 commit into
jpuri:masterfrom
nickbely-novata:issue-1429/fix-mention-deletions
Open

[Issue-1429] Resolve Bug for Mention Suggestion Clicks Overwriting Text#1440
nickbely-novata wants to merge 1 commit into
jpuri:masterfrom
nickbely-novata:issue-1429/fix-mention-deletions

Conversation

@nickbely-novata

Copy link
Copy Markdown

Resolved the following issue: #1429.

Root Cause: Clicks on the suggestion dropdown menu forcibly change the anchorOffset and focusOffset position of the cursor.

Resolved by:

  • Establishing the mentionIndex prior to the click taking place, and passing it into the addMention function.

This was the optimal quick solution for now since stopping click event propagation or preventing default click behavior did not prevent the cursor position from updating.

Any expediency with reviewing and merging this bug fix would be appreciated, @jpuri.

@lifemixture

lifemixture commented Oct 31, 2024

Copy link
Copy Markdown

Also encounter this issue. It works in case you use keyboard to select a person and then press enter key. But it doesn't when you use mouse...

This request should be merged

@lifemixture

Copy link
Copy Markdown

@jpuri is this possible to merge this?

@Bogdan-Moskovchenko

Copy link
Copy Markdown

@jpuri it would be great if it can be merged asap. Also encounered this issue

@nickbely-novata

Copy link
Copy Markdown
Author

I wouldn't count on it, the repo owner hasn't merged anything in over a year. Your best bets are to fork it with the fix.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants