trix
trix copied to clipboard
Cursor placed at incorrect position when clicking at the end of bullet with a sub-bullet
Where there are bullets with sub-bullets, clicking the mouse to the right of the main bullet places the cursor at the beginning of the text of the bullet as opposed to the end of the text of the bullet.
Steps to Reproduce
- Go to https://trix-editor.org/ and clear the content
- Create a bulleted list (say A, B, C)
- Add sub-bullets to B, call it B1 and B2
- Click mouse far to the right of B1
- Cursor is placed at the end of B1 as expected
- Click mouse far to the right of B
- Cursor is placed at the beginning of B. This is not expected, the cursor should be placed at the end of B instead
Details
- Trix version: 1.3.1
- Browser name and version: Chrome Version 90.0.4430.212 (Official Build) (x86_64)
- Operating system: MacOS 11.3.1
Here's a video demonstrating this issue:
https://user-images.githubusercontent.com/11605395/120899546-1b3b8400-c5e5-11eb-9e1f-c92011b264b2.mov
Safari works as expected, placing the cursor at the end of the line. I was only able to reproduce this issue in Chrome on both macOS and Windows.