[FIX] web_tour: fix drag_and_drop_native in kanban views
Due to how drag and drop works in grouped kanban views now, no event is triggered when dragging and dropping, this fix listens to mousedown in order to define whether the element is going to be dragged. Part-of: odoo/odoo#98837
This commit is contained in:
@@ -659,6 +659,9 @@ Tip.getConsumeEventType = function ($element, run) {
|
||||
if ($element.closest('.ui-sortable').length) {
|
||||
return 'sort';
|
||||
}
|
||||
if (run.indexOf("drag_and_drop_native") === 0 && $element.hasClass('o_record_draggable') || $element.closest('.o_record_draggable').length) {
|
||||
return 'mousedown';
|
||||
}
|
||||
}
|
||||
return "click";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user