Skip to content

Commit

Permalink
fix : Preventing the apply button from triggering the blur event of t…
Browse files Browse the repository at this point in the history
…he task editor description - EXO-66080 Meeds-io/meeds#1105 (#249) (#253)

Prior to this change the task description was not saved when clicking on the apply button by force. This issue was caused by the blur event of the task description editor.
This fix addresses this issue by preventing the apply button from triggering the blur event of the editor description
  • Loading branch information
sofyenne authored and exo-swf committed Sep 21, 2023
1 parent 1576b38 commit 3b3dc71
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,12 @@ export default {
startupFocus: self.inputVal=== '' ? true :'end',
autoGrow_onStartup: true,
on: {
blur: function () {
$(document.body).trigger('click');
self.hideDescriptionEditor();
blur: function (event) {
const doc = event.editor.container.$.ownerDocument;
if (doc.activeElement.id.toString() !== 'saveDescriptionButton'){
$(document.body).trigger('click');
self.hideDescriptionEditor();
}
},
change: function(evt) {
const newData = evt.editor.getData();
Expand Down

0 comments on commit 3b3dc71

Please sign in to comment.