basecamp / basecamp/trix

On Android, cursor movement removes CR and inserts characters

Open
#682 6 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
20k
Forks
1.1k
Avg merge
3d 12h
Merged PRs (30d)
13

Description

On Android, I ran into a bug. Hard to narrow down what the general problem is. The provided error sequence will: remove CR and insert a character that was not typed.

##### Steps to Reproduce

1. On **phone**, go to https://trix-editor.org/
2. go to the bottom of the page and put cursor at last character
3. insert 5 CR to create a bunch of empty lines
4. go the the 3rd empty line
5. type: abc
6. insert cursor between b and c
7. type a CR
8. type: d
9. type a CR
your input should look like:

Ab
D
c

10. Move cursor to empty line after c
Bug occurs:
The display changes (without user interaction) to:

AbcDc

Note: bug does not occur on laptop version.

Note: there seem to be other phone editor bugs, but i could not narrow them down to a simple use case. I have to play with it and find the bug, but then i can't reproduce it. Bold and/or italics mode is something i was playing with and where i first noticed some problems.
But this bug's error sequence still happens when italics is off.
It's common for the cursor to jump around when i did not move it to that location -- cursor jumped itself.

Some minor bugs:
1. On **phone**, go to https://trix-editor.org/
2. go to the bottom of the page and put cursor at last character
3. hit the bold menu button. it registers but then reverts back to not bold

##### Details

* Trix version: https://trix-editor.org/
* Browser name and version: chrome 76.0.3809.132
* Operating system: Android 9
Samsung phone. One UI version: 1.0
Samsung Galaxy A7

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.