Skip to content

Commit

Permalink
Fixed #14778
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Apr 9, 2024
1 parent b0446f5 commit 60e6c7d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Fixed a bug where the `utils/fix-field-layout-uids` command wasn’t looking at field layouts defined with a `fieldLayout` key in the project config.
- Fixed a bug where element indexes’ View menus could show the “Sort by” field when the structure view was selected. ([#14780](https://github.com/craftcms/cms/issues/14780))
- Fixed a bug where fields with overridden handles weren’t editable from element indexes. ([#14767](https://github.com/craftcms/cms/issues/14767))
- Fixed a bug where element chips within element cards were getting action menus and drag handles within relation fields. ([#14778](https://github.com/craftcms/cms/issues/14778))

## 5.0.2 - 2024-04-05

Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js.map

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/web/assets/cp/src/js/BaseElementSelectInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Craft.BaseElementSelectInput = Garnish.Base.extend(
},

getElements: function () {
return this.$elementsContainer.find('.element');
return this.$elementsContainer.find('> li > .element');
},

getAddElementsBtn: function () {
Expand Down Expand Up @@ -327,7 +327,11 @@ Craft.BaseElementSelectInput = Garnish.Base.extend(
title: Craft.t('app', 'Reorder'),
'aria-label': Craft.t('app', 'Reorder'),
'aria-describedby': $element.find('.label').attr('id'),
}).appendTo($element.find('.chip-actions,.card-actions'));
}).appendTo(
$element.find(
'> .chip-content > .chip-actions, > .card-actions-container > .card-actions'
)
);
}
}

Expand Down

0 comments on commit 60e6c7d

Please sign in to comment.