odoo/o-spreadsheet#8842

Created by BI, Adrien Minne (adrm)

Blocked

label
odoo:saas-19.2-fix-pivot-drag-and-drop-adrm
head
bdf14c68735594b998cd9bf8eb3d7fc0f6141d1f
odoo/o-spreadsheet
saas-19.2 #8842 missing r+
saas-19.3
master

[FIX] pivot: prevent drag & drop in pivot side panel

Description

In the pivot side panel, a pointerdown event on a button/input/select of an dimension should not trigger the drag & drop of the dimension.

The way we were handling that was all over the place. Some elements in the children had a pointerdown.stop, the <select> were handled directly before starting a drag & drop, and some elements didn't prevent a d&d where they should have.

We will now handle everything in the layout configurator. Before starting the d&d, we check that the event target is not an input/select, or has a class that indicates that it is interactive and should not trigger a d&d.

The solution is not the greatest, as we might forget some classes, but it beats having the children having to stop pointer events because of their parents.

Task: 6268403

review checklist