Unsaved changes are lost when moving browser window

Hi,

I’ve noticed a bug in the DatoCMS interface:

When you’re editing the content of a record and decide to move the browser window (for example, dragging it to another monitor, or snapping it side by side with another window/tab), all unsaved changes are lost. This includes text edits, image changes, and removed elements.

Steps to reproduce:

  1. Open a record in DatoCMS.
  2. Make some changes (text, images, or element removals).
  3. Move the browser window to another screen or snap it to a side.
  4. Observe that all changes are gone.

Environment:

  • Browser: Chrome (latest version)

Would love to know if this is reproducible for others and if there’s a fix in the works.

Thanks!

Hey @vkaars,

Welcome to the Dato forum, and sorry about that!

We’ve noticed this sometimes happen when resizing a window — it’s a responsiveness bug on our side — but haven’t heard of it happening when moving a window. Can you please confirm whether that’s the case for you, i.e., if simply moving a window (without resizing it as well, as with auto-snapping it if you move it close to a side of the monitor) will also cause this issue?

And could you please specify which browser and operating system you’re using?

I’ll make a fuller report about this once we have the details. Thank you and sorry about that!

Hi Roger, thanks for your reply!

I double-checked and it indeed happens when resizing the window (for example when snapping it to the side of the screen). Simply moving the window without resizing doesn’t seem to trigger the issue.

Environment details:

  • Browser: Chrome 127.0.6533.100 (latest)
  • OS: Windows 24h2

Hope this helps to reproduce it!

Best,
Vince

Thank you, @vkaars. This definitely looks like an issue on our side. Sorry about that, I’ll report it right away! In the meantime, please consider using an Auto-save plugin (Record auto-save - Plugins — DatoCMS) or trying not to resize the window while working. (You shouldn’t have to do that… it’s a bug on our end! That’s just a temporary workaround.)

Just confirming this as an issue on our side that we are working on addressing. I’ll report back either when it’s fixed or once we have a better ETA.

Hi @vkaars:

We believe this issue should be resolved now! Sorry it took a bit of time… needed a deeper investigation. If you notice this happening again, please let us know, but we believe it to be fixed for now.

Thank you for the report.

Hi @roger

Thanks for the quick fix, the scaling issues seem resolved :raising_hands: However, I noticed a new side effect: when saving a record, the Preview button at the top of the page disappears.

Could you check if this is related to the recent changes?

Best,
Vince

Hey @vkaars can you send a screenshot of this Preview button that is disappearing?

Before saving the record:

@vkaars,

That looks like something one your devs might’ve added via a ā€œfield extensionā€ plugin. Could you check with them, please? (And if they can’t fix it, please have them reach out to us at support@datocms.com with more details, and the plugin source code if possible)