Auto-save removes focus from RichText fields

Describe your question/issue in detail

We have multiple users struggling to edit documents. When auto-save completes, the focus is removed from the RichText field the user is typing in so it no longer accepts input. User needs to click on the field to refocus before they can type again. This means it’s impossible to type more than a few letters at a time before focus is lost.

Impacted feature

RichText fields in content editor

What steps have you taken to resolve this issue already?

Cleared all cookies and local/session storage.

Errors

None shown

Your Role

Developer

Steps to reproduce

Edit content in any RichText field.

Hi there,

Thanks for flagging this. It does sound like it could be a bug, but we’ll need a bit more detail to investigate properly.

Could you record the issue using the Jam Chrome extension and share the link with us? It captures the console logs and technical details we need to debug.

You can install it here:

Once installed:
• Start a recording
• Reproduce the auto save focus issue in the Rich Text field
• Stop the recording and share the Jam link with us

You can uninstall the extension right after.

If possible, also let us know:
• Which browser and version you’re using
• Whether this happens in all documents or only a specific custom type
• If it started recently or has always behaved this way

We’ll take it from there once we have the recording.

Hi Phil, thanks for the reply. Unfortunately, I can’t reproduce the issue in Chrome to be able to use the Jam Chrome extension. The issue occurs for me in Firefox (147.0.3). There are no errors in the Console when the issue occurs.

This is good info already knowing it’s a Firefox specific issue. Can you try turning off you Firefox plugins to see if it stops the issue? Then if that helps re-add them one by one?

Have done that, and the problem still occurs with all plugins disabled.

Hey @gil.barbara, they've released a new version of Firefox. Could you update the browser and see if it keeps happening?

Hi Ezekiel. We’ve updated to the latest version and the issue still persists.

Hey @prismic11, thanks for trying that! I'm unable to reproduce this, so this looks to be a more localised issue. Could you record what you're seeing with something other than Jam, if there's no errors in the console Jam isn't going to make much of a difference and at least we'll be able to see what you see? Also, have you tried in an incognito session on Firefox?

Here is a video example showing the input field losing focus during autosave:

https://res.cloudinary.com/go-source/video/upload/v1774274660/tmp/prismicio-issue/n57razkhefk8xvo3meoj.mp4

I’m using Chrome version 146.0.7680.80. Some slices work fine, but others do not. I don’t experience this issue in Safari.

Please get in touch with me via email if you need help with debugging.

Hey @dima_p, I'm not immediately able to reproduce that, but from your video (thanks for sending it!), I'm wondering if might not be related to the live preview loading on the sidebar, although I'm not sure how the browser would relate to that necessarily. Do you see any pattern that can give us clues on why it works on certain slices but not others? Is it within the same page?