Bugfix: when left panel disabled and dragstart messages, show panel

This commit is contained in:
the-djmaze 2022-11-22 11:14:56 +01:00
parent 1032d0eb45
commit 434ac21103
7 changed files with 21 additions and 18 deletions

View file

@ -3,7 +3,7 @@ import ko from 'ko';
import { HtmlEditor } from 'Common/Html';
import { timeToNode } from 'Common/Translator';
import { doc, elementById, addEventsListeners, dropdowns } from 'Common/Globals';
import { dropdownsDetectVisibility } from 'Common/UtilsUser';
import { dropdownsDetectVisibility, moveAction } from 'Common/UtilsUser';
import { EmailAddressesComponent } from 'Component/EmailAddresses';
import { ThemeStore } from 'Stores/Theme';
import { moveMessagesToFolder, dropFilesInFolder } from 'Common/Folders';
@ -144,12 +144,17 @@ Object.assign(ko.bindingHandlers, {
// Remove the Chrome visibility
dragImage.style.cssText = '';
moveAction(true);
} else {
e.preventDefault();
}
}, false);
element.addEventListener("dragend", () => dragData = null);
element.addEventListener("dragend", () => {
dragData = null;
moveAction(false);
});
}
},