jkomoros / card-web

The web app behind thecompendium.cards
Apache License 2.0
46 stars 8 forks source link

Cursor often goes to front of content editable #615

Open jkomoros opened 2 years ago

jkomoros commented 2 years ago

Seems to be after fixing #612 ?

Every so often when editing a thing after pasting, the cursor flies to the front of the contenteditable. But not clear exactly what causes it

jkomoros commented 2 years ago

It seems to be a race condition where a little bit after first starting interacting with the field the cursor jumps to the beginning

jkomoros commented 2 years ago

Often seems to be right after creating new line break?

jkomoros commented 2 years ago

Maybe the SECOND time you focus the text box?

jkomoros commented 2 years ago

Repro: 1) Open a card that has highlights. 2) Put your cursor somewhere int he content editable. The highlights remain. 3) Add a space or something. The highlight remains for a half second, and when they disappear, the cursor is now at the front of the content editable

jkomoros commented 2 years ago

It doesn't have to have highlights, it just has to be a non-from-conteneditable thing, and the first edit it switches to from-content-editable the cursor jumps (I think)

jkomoros commented 2 years ago

This appears to have gone away today, with a new Chrome Canary version. Perhaps it was a temporary regression in Canary?