From 53b02eee7e84ce56476e1e473ec0e25bbc5cd156 Mon Sep 17 00:00:00 2001 From: Justin Max Langfan Date: Wed, 20 Nov 2024 18:37:16 -0500 Subject: [PATCH] Prevent tooltip scroll propagation to parent containers by adding an onWheel handler in the cell implementation --- packages/table/src/cell/cell.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/table/src/cell/cell.tsx b/packages/table/src/cell/cell.tsx index a1d08ae5f9..efd776ed7b 100644 --- a/packages/table/src/cell/cell.tsx +++ b/packages/table/src/cell/cell.tsx @@ -191,6 +191,7 @@ export class Cell extends React.Component { className={classes} title={tooltip} ref={cellRef} + onWheel={(e: React.WheelEvent) => e.stopPropagation()} {...{ style, tabIndex, onKeyDown, onKeyUp, onKeyPress }} >