craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.25k stars 631 forks source link

[5.x]: Pressing return discards inline field changes and saves owner entry #15841

Open tommysvr opened 1 week ago

tommysvr commented 1 week ago

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

  1. Create a Matrix field with View more set to 'As an element index'
  2. Edit the entries inline and make a change
  3. 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

-

i-just commented 1 week ago

Thanks Tommy! I raised a PR for this.