Skip to content

Commit

Permalink
Really fixed #4648
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jul 24, 2019
1 parent 5e74dc2 commit 6f47e6a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/web/assets/cp/dist/js/Craft.js
Original file line number Diff line number Diff line change
Expand Up @@ -4352,10 +4352,6 @@ Craft.BaseElementSelectInput = Garnish.Base.extend(
}

this.onSelectElements(elements);

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

createNewElement: function(elementInfo) {
Expand Down Expand Up @@ -4418,6 +4414,10 @@ Craft.BaseElementSelectInput = Garnish.Base.extend(
onSelectElements: function(elements) {
this.trigger('selectElements', {elements: elements});
this.settings.onSelectElements(elements);

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

onRemoveElements: function() {
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.

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

this.onSelectElements(elements);

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

createNewElement: function(elementInfo) {
Expand Down Expand Up @@ -427,6 +423,10 @@ Craft.BaseElementSelectInput = Garnish.Base.extend(
onSelectElements: function(elements) {
this.trigger('selectElements', {elements: elements});
this.settings.onSelectElements(elements);

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

onRemoveElements: function() {
Expand Down

0 comments on commit 6f47e6a

Please sign in to comment.