Skip to content

Commit

Permalink
Clear errors class when refreshing an element chip/card's HTML
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
brandonkelly committed Jun 11, 2024
1 parent 4ec4399 commit df8ed8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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/src/js/Craft.js
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,7 @@ $.extend(Craft, {
)
.detach();
const $inputs = $element.find('input,button').detach();
$element.html($replacement.html());
$element.html($replacement.html()).removeClass('error');

if ($actions.length) {
const $oldStatus = $actions.find('span.status');
Expand Down

0 comments on commit df8ed8a

Please sign in to comment.