craftcms / cms

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

[5.x]: Can't delete entry in matrix field with view mode cards #15575

Closed AmarHuda1 closed 2 weeks ago

AmarHuda1 commented 3 weeks ago

What happened?

Description

In Craft CMS 5, when a Matrix field with both the min and max entries are set to 2, and the view mode is set to cards with the grid style, the option to delete the entry content is missing . However, if the view mode is change to inline-editable block, the delete option appears.

Steps to reproduce

  1. Create matrix with 3 entry type
  2. Set both min entries and max entries to 2
  3. Set the view mode to card with the style grid
  4. Now try to fill the matrix field

Expected behavior

The option to delete entry content should appear as it does in the inline-editable block view mode.

Actual behavior

Card view inline-editable block

Craft CMS version

5.3.4

PHP version

8.3.10

Operating system and version

Linux 6.4.16-linuxkit

Database type and version

MySQL 8.0.35

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.12-98)

Installed plugins and versions

i-just commented 3 weeks ago

Hi, thanks for reporting! I raised a PR for this.

brandonkelly commented 2 weeks ago

Craft 5.3.6 is out with that fix. Thanks again!

AmarHuda1 commented 2 weeks ago

Nice, work as expected. Thank you I-just & Brandon