Skip to content

Commit

Permalink
Have the draft editor recheck the form after selecting elements
Browse files Browse the repository at this point in the history
Fixes #4648
  • Loading branch information
brandonkelly committed Jul 24, 2019
1 parent 0b1683b commit b6836a8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Fixed an error where it wasn’t possible to scale SVGs using only height. ([#4643](https://github.com/craftcms/cms/pull/4643))
- Fixed a bug where the content area of some Control Panel pages weren’t getting any bottom padding. ([#4644](https://github.com/craftcms/cms/issues/4644))
- Fixed a bug where installing a plugin immediately after installing Craft from the console could corrupt the project config if `useProjectConfigFile` was enabled. ([#3870](https://github.com/craftcms/cms/issues/3870))
- Fixed a bug where entry forms could overlook changes made to Categories fields. ([#4648](https://github.com/craftcms/cms/issues/4648))

## 3.2.6 - 2019-07-23

Expand Down
6 changes: 5 additions & 1 deletion src/web/assets/cp/dist/js/Craft.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! - 2019-07-22 */
/*! - 2019-07-24 */
(function($){

/** global: Craft */
Expand Down Expand Up @@ -4352,6 +4352,10 @@ Craft.BaseElementSelectInput = Garnish.Base.extend(
}

this.onSelectElements(elements);

if (window.draftEditor) {
window.draftEditor.checkForm();
}
},

createNewElement: function(elementInfo) {
Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/js/Craft.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

this.onSelectElements(elements);

if (window.draftEditor) {
window.draftEditor.checkForm();
}
},

createNewElement: function(elementInfo) {
Expand Down

0 comments on commit b6836a8

Please sign in to comment.