Issue #2515 - Guard devtools click handlers against non-primary clicks.

We only want clicks on HTML elements to respond to the primary button.
This commit is contained in:
Moonchild 2024-07-25 15:50:31 +02:00 committed by roytam1
commit 9b56867901
5 changed files with 16 additions and 1 deletions

View file

@ -1480,6 +1480,9 @@ Column.prototype = {
* for sorting.
*/
onClick: function (event) {
if (event.button != 0) {
return;
}
let target = event.originalTarget;
if (target.nodeType !== target.ELEMENT_NODE || target == this.column) {