[4.x]: "Showing your unsaved changes." keeps popping up after not making any changes
Nobody has claimed this yet.
- 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
- Open an entry
- Click somewhere
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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