[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:
William Braeckman
2022-09-19 11:28:50 +02:00
parent 51333adefe
commit c0e2c64967
+3
View File
@@ -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";
};