Skip to content

Commit

Permalink
Update status indicator position
Browse files Browse the repository at this point in the history
Udpates the status indicator to hook onto the `data-layout-element` attribute vs. the `.field` class because the `.field` class might be used in other contexts.

Fixes #12403
  • Loading branch information
brianjhanson committed Nov 30, 2022
1 parent 926bd27 commit 1736316
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
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.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/src/js/ElementEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ Craft.ElementEditor = Garnish.Base.extend(

const $fields = $(selectors.join(','))
.parents()
.filter('.field:not(:has(> .status-badge))');
.filter('[data-layout-element]:not(:has(> .status-badge))');
for (let i = 0; i < $fields.length; i++) {
$fields.eq(i).prepend(
$('<div/>', {
Expand Down

0 comments on commit 1736316

Please sign in to comment.