Disable context menu in header of treegrid


When right clicking in the header of a treegrid, the context menu of the last selected row is displayed.
Any action from the context menu is performed on the last selected row.
How can I disable this?


As one (hackish) workaround, you could try is disabling the pointer-events for the relevant elements in your theme (pointer-events: none).


Isn’t there a decent way to disable this?