cms icon indicating copy to clipboard operation
cms copied to clipboard

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

Open tommysvr opened this issue 1 year ago • 1 comments

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

tommysvr avatar Oct 04 '24 12:10 tommysvr

Thanks Tommy! I raised a PR for this.

i-just avatar Oct 04 '24 15:10 i-just

Craft 5.5.0 is out now with that fix.

brandonkelly avatar Nov 12 '24 17:11 brandonkelly