cms
cms copied to clipboard
[5.x]: Pressing return discards inline field changes and saves owner entry
What happened?
Description
When inline-editing a Matrix field with the Element Index view, changes made to fields as discarded and the owner entry is saved when return is pressed.
Steps to reproduce
- Create a Matrix field with View more set to 'As an element index'
- Edit the entries inline and make a change
- Press return/enter
Expected behavior
Matrix/inline changes are saved and user stays on the entry screen.
Actual behavior
Owner entry is saved and redirected back to main element index; inline changes to Matrix field were not saved.
https://github.com/user-attachments/assets/aed087b9-b44e-4949-bd38-55b0c08ab91d
Craft CMS version
5.4.6
PHP version
8.2
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
Thanks Tommy! I raised a PR for this.
Craft 5.5.0 is out now with that fix.