craftcms / craftcms/cms

[4.x]: "Showing your unsaved changes." keeps popping up after not making any changes

Open
#11,106 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug craft4
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

What happened?
Description

I have a basic entry with just the default title field and a matrix field (that is limited to 1 item). Whenever I open an entry and just click anywhere on the page, the "Showing your unsaved changes." message pops up. If I discard the changes and click anywhere the same thing happens. If I save the entry and click anywhere, the same thing happens.

Steps to reproduce
  1. Open an entry
  2. Click somewhere
  3. Message pops up wether or not I changed content
Expected behavior

The message shouldn't pop up when I don't make any changes

Actual behavior

The message of unsaved changes constantly pops up after I click anywhere on the page

Craft CMS version

4.0.0.1

PHP version

8.1.5

Operating system and version

macOS Big Sur version 11.4 (Darwin 20.5.0)

Database type and version

MySQL 5.7.34

Image driver and version

GD 8.1.5

Installed plugins and versions
  • Colour Swatches: 4.0.0
  • CP Field Inspect: 1.4.3
  • Formie: 2.0.0-beta.5
  • Knock Knock: 2.0.0-beta.1
  • MatrixMate: 2.0.0
  • Navigation: 2.0.0-beta.5
  • Position Fieldtype: 4.0.0-beta.3
  • Ray: 2.0
  • Redactor: 3.0.0
  • SEOmatic: 4.0.0-beta.8
  • Slug Equals Title: 2.0.0-beta.1
  • Super Table: 3.0.0-beta.3
  • Typed link field: 2.1.1-rc
  • Vite: 4.0.0-beta.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce this with a basic entry containing the default title field and a Matrix field limited to one item. Check whether clicking without edits triggers the warning after opening, discarding, and saving; done means the warning appears only after actual content changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
content, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.