You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
When adding a line break right after a mention, the composer crashes.
Steps to reproduce
Add a mention to the composer. This will also add a whitespace after it.
Remove the whitespace and place the cursor right after the mention.
Hit enter/add a line break.
The composer crashes. This happens because when adding a new line we're supposed to split the DOM tree in 2 and use paragraphs/line break nodes in between, but the code doesn't make an exception for mentions, which have only 1 char length.
Related issues
Proposed solution
Fix the DOM tree splitting algorithm.
The text was updated successfully, but these errors were encountered:
Problem
When adding a line break right after a mention, the composer crashes.
Steps to reproduce
The composer crashes. This happens because when adding a new line we're supposed to split the DOM tree in 2 and use paragraphs/line break nodes in between, but the code doesn't make an exception for mentions, which have only 1 char length.
Related issues
Proposed solution
Fix the DOM tree splitting algorithm.
The text was updated successfully, but these errors were encountered: