Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Fixed a bug where focus was moved to the top of the body after the final tag in a Tags field was removed. ([#17861](https://github.com/craftcms/cms/pull/17861))
- Fixed a bug where element queries weren’t handling generated field params properly, for generated fields with the same handle as custom fields. ([#17851](https://github.com/craftcms/cms/issues/17851), [#17855](https://github.com/craftcms/cms/issues/17855))
- Fixed a bug where it wasn’t possible to choose autosuggest inputs’ suggestions via mouse click. ([#17869](https://github.com/craftcms/cms/pull/17869))
- Fixed a bug where nested entries within Matrix fields weren’t getting a “Copy” action if the field was set to the inline-editable blocks view mode and Min/Max Entries were set to 1. ([#17878](https://github.com/craftcms/cms/issues/17878))
- Fixed a styling issue.

## 5.8.17 - 2025-09-05
Expand Down
28 changes: 18 additions & 10 deletions src/templates/_components/fieldtypes/Matrix/block.twig
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,12 @@
{% endif %}
{% endif %}

{% set actionMenuItems = actionMenuItems|merge([
{hr: true},
]) %}

{% if not staticEntries %}
{% set actionMenuItems = actionMenuItems|merge([
{hr: true},
{
icon: 'trash',
label: 'Delete'|t('app'),
Expand All @@ -109,17 +112,22 @@
data: {action: 'duplicate'},
},
},
{
icon: 'clone-dashed',
color: 'fuchsia',
label: 'Copy'|t('app'),
attributes: {
data: {action: 'copy'},
},
},
{hr: true},
]) %}
{% endif %}

{% set actionMenuItems = actionMenuItems|merge([
{
icon: 'clone-dashed',
color: 'fuchsia',
label: 'Copy'|t('app'),
attributes: {
data: {action: 'copy'},
},
},
{hr: true},
]) %}

{% if not staticEntries %}
{% for entryType in entryTypes %}
{% set actionMenuItems = actionMenuItems|push({
icon: entryType.icon ?? 'plus',
Expand Down