mlemgroup / mlem

Mlem for Lemmy
https://lemmy.ml/c/mlemapp
GNU General Public License v3.0
178 stars 31 forks source link

Cursor jumps to the end when starting to edit a post/comment #474

Closed fer0n closed 1 year ago

fer0n commented 1 year ago

Expected Behavior If I move the cursor somewhere and start typing, it should enter the text at the cursor.

Actual Behavior The cursor jumps to the end after the first typed letter.

To Reproduce

Mlem Information: 1.0.1 (475) iPhone 12 Pro, iOS 16.6

EricBAndrews commented 1 year ago

That's very strange--probably due to #433 if I had to guess, since I can't think of anything else recently that touched editors and that PR does do some field selection stuff which might cause this.

I'm unfortunately unable to replicate on my own device:

https://github.com/mlemgroup/mlem/assets/44140166/69ae1310-5c23-497f-8d39-70ab47643326

Cataloguing this as "to reproduce" until we can figure out the precise repro steps

fer0n commented 1 year ago

@EricBAndrews this has been around before the latest release. Maybe the view re-renders after the first change? I also added my device information

fer0n commented 1 year ago

I reinstalled the app and at least so far, it's not come up again. I'll update if it does

fer0n commented 1 year ago

It's back again. I tried a few different settings, restarting it etc., but it's always there now. Always after the first character and always working after.