Skip to content

EspoCRM – Open Source CRM Application

Email drag fix

Yuriicf6d6fbd5796
diff --git a/client/src/views/email/list.js b/client/src/views/email/list.js
index 01fa2d6d4c..95831b6c1b 100644
--- a/client/src/views/email/list.js
+++ b/client/src/views/email/list.js
@@ -66,6 +66,11 @@ class EmailListView extends ListView {
async createListRecordView(fetch) {
const view = await super.createListRecordView(fetch);
+ // Handles return.
+ if (view.isRendered()) {
+ this.whenRendered().then(() => this.initDraggable(null));
+ }
+
this.listenTo(view, 'after:render', () => this.initDraggable(null));
this.listenTo(view, 'after:show-more', fromIndex_1 => this.initDraggable(fromIndex_1));