Skip to content

Commit 12ebe85

Browse files
committed
fix: DH-13095 Ignore right click while dragging table column
1 parent 181d29e commit 12ebe85

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/grid/src/Grid.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,6 +1868,12 @@ class Grid extends PureComponent<GridProps, GridState> {
18681868
}
18691869

18701870
handleMouseUp(event: MouseEvent): void {
1871+
// Ignore right click while dragging
1872+
const { isDragging } = this.state;
1873+
if (isDragging && event.button === 2) {
1874+
return;
1875+
}
1876+
18711877
window.removeEventListener('mousemove', this.handleMouseDrag, true);
18721878
window.removeEventListener('mouseup', this.handleMouseUp, true);
18731879

0 commit comments

Comments
 (0)