diff --git a/mail/js/app.js b/mail/js/app.js index 81bb6229a2..b96e8ed1c9 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -5068,7 +5068,7 @@ app.classes.mail = AppJS.extend( var emails, distLists = []; var fromWidget = {}; - var parentWidgetDOM = ui.draggable.parentsUntil('div[id^="mail-compoe_"]','.ui-droppable'); + var parentWidgetDOM = ui.draggable.siblings().filter('input'); if (parentWidgetDOM != 'undefined' && parentWidgetDOM.length > 0) { fromWidget = self.et2.getWidgetById(parentWidgetDOM.attr('name'));