Cursor jumping around in composer / editor text box

the cursor seems to be jumping around in the composer / editor. anyone else experiencing this? i’ve had it in both mobile and desktop views on my forum in chrome and safari. it happens when i have a quote in the text box or some text i am editing. the cursor jumps to another place when i start to type or even sometimes if the mouse cursor goes off the text box without clicking. i haven’t had it yet on Meta here but it’s been happening lately on our forum to me and others. also doesn’t happen all the time, seems mostly on longer posts.

1 Like

Have you tried working in safe mode on your instance to see if it continues?

1 Like

not yet. i’ll try reproducing it again first thing in the morning when i get to my desk, and also safe mode. i first noticed it a few days ago when i was editing our moderator guide and thought maybe it was a discoTOC thing, but then i noticed a few more times in other places - seems to only happen when i was editing a previous post or quoting someone, in both mobile and desktop. then today a couple of my users also noted they experienced odd cursor behavior lately in mobile view composer box. it’s like you click/tap to get the cursor in a spot where you want to edit or enter text but then when you actually type, the cursor immediately moves to a different place and the text entered appears in the new location. doesn’t happen with the select and edit feature.

ok i did manage to reproduce it in safe mode and this time i used the select to edit function but on a long block of text to bring up the editor. it doesn’t happen every time i try to edit or post. right now, the cursor is jumping to the top of the post when the mouse moves over an element like a button or the editor tool bar. even if i am way down in the text body, it jumps up to the top. but sometimes it seems to happen just as i enter the text (in mobile view it does this). very odd because it’s inconsistent. even if i select text in the editor, the cursor is deselecting and moving to another place at times.

for example, if i select some text to make a link via the link button, the link is created at the top of the page with no text in it, instead of around the text i selected. it’s jumping when i mouse over the link button but before it’s clicked. and this is in safe mode. it’s odd because it doesn’t happen right away. the behavior of the cursor may be normal at first in the editor, but after making a few changes, it suddenly starts moving to different places on the page.

Hey Lilly,

It would be great if you managed to have a video capture of what’s happening.

I often have OBS recording my desktop in the background, it helped me many times capture weird issues in various software and get repro steps.

For issues that I know I can repro more easily, I use ShareX, which has a great record feature.

3 Likes

yea i’ll try to get a screen video on my desktop. it’s happening on my ipad too so i can grab one there when i can reproduce it. of course this issue only seems to be happening when i really need to edit some long post :woman_facepalming:

1 Like

here is simple one from my ipad (safari) where the emoji gets put in wrong place at top of page instead of where i place cursor.

desktop chrome

2 Likes

That happends quite often, but not every time on my iPad too. I’ve blaimed myself, I touch somehow screen before hitting the toolbar.

Because — again: for me — it happends too randomly I can’t give any help to reproduce it. But buying an iPad and using it :wink:

1 Like

Pretty unlikely, but can you double check in safe mode on desktop chrome?

1 Like

Hello,

Yeah, I think this is a bug related with what I reported before. When composer opens with fast edit, can't close the keyboard. This is still a problem.

When composer opened from fast edit (if there are multiple same word) then the composer focus is broke. This issue is still active after you close the composer so when you open a post with regular edit then this bug still remain.

It seems when you opened this way the composer and try to type for example a special character (which change the keyboard from alphabet to numeric) this will drop the focus for a moment and when the focus is reactivated it will drop the cursor to the position which was when you opened, I guess.

Huawei P20 Pro
Android 10
Chrome 112.0.5615.136

In this video I show:

  1. Opening composer with fast edit
  2. Opening composer with regular edit (after I opened it with fast edit)
  3. Switching to composer preview (keyboard left open)

4 Likes

I’ve struggled with fast edit quite often with iPad. It started few weeks again. It just doens’t do anything, if I’ve painted more than one word, or painted section ends to space (well, that can be just coincident).

Sometimes it needs three of four tries, sometime I have to paste just one word.

It happends here and at my own forum, but not at those forums that aren’t upgraded recently (in the meaning those are still using legacy things without sidebar etc.). But again: it happends randomly and I can’t give any route to reproduce it.

I’ve blaimed iPad, DiscourseHub, my net-connections and/or too excessive occurrence of hattiwatteners or sunspots.

1 Like

I am able to repro the issue without using fast edit. :slight_smile:

Repro steps:

  1. Create a post

  2. Write and set the cursor anywhere but on the first char of the first line

  3. Click the emoji button

  4. The cursor goes to the first char of the first line

3 Likes

i’ve reproduced in chrome and safari in safe mode. both with the fast edit and regular. also with any button and without clicking (just mousing over).

2 Likes

ok i’ve managed to reproduce it here on meta finally when editing one of my posts. super annoying because my typed text was going in the wrong place and it took me about 4 tries to get it in the right spot. had to make sure my mouse wasn’t on any element except the text box.

1 Like

Possibly some kind of ‘ease of access’ feature being invoked by a browser keyboard shortcut unwittingly pressed while typing?

Not on a Mac, but sporadically have a similar sounding issue on PC - in my case not restricted to Discourse though.

This has returned to meta. Chrome on window desktop, but not in safe-mode.

I cannot edit any text by selecting a word or phrase and using the editor toolbar (either using the select edit feature or the regular pencil icon). I could not make a word preformatted text or bold or whatever. The cursor jumps to the beginning of the text in the editor window as soon as the mouse cursor leaves the editor window area. Seems related to the mouse and non-touchscreen interface in a TC or plugin :woman_shrugging:t2:

It is not happening in desktop view on my iPad Safari iOS.

Can you describe very precise steps, or record a video? I can’t repro here :thinking:

Also, I don’t encounter the original bug anymore.

exactly same as here

I can’t repro.
When I click a formatting icon, the cursor stays at the same place.
If I click the emoji icon, the composer’s not focused anymore as the emoji input is focused instead.

:thinking:

This was driving me nuts last night. I had to switch to my ipad so i could use the preformatted text button in my SQL queries.