From 879604f9094e706b893edd3de2cda4de9d670015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Rahir=20=28rar=29?= Date: Wed, 19 Nov 2025 16:09:16 +0100 Subject: [PATCH] [FIX] GridOverlay: Prevent mousedown default when selecting range When selecting a range in the grid and the composer is open, passing your selection around the composer will see its content selected as if we were actually selecting text inside the composer. This behaviour is a direct effect of the default behaviour of the mousedown event that starts the selection. Since the focus is kept on the composer at all times, the browser behaves as if we had clicked on the composer itself even if from a user point of view, it makes little sense. Task: 5344285 --- src/components/grid_overlay/grid_overlay.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/grid_overlay/grid_overlay.ts b/src/components/grid_overlay/grid_overlay.ts index 581a541ade..c083fd41d7 100644 --- a/src/components/grid_overlay/grid_overlay.ts +++ b/src/components/grid_overlay/grid_overlay.ts @@ -228,6 +228,7 @@ export class GridOverlay extends Component { // not main button, probably a context menu return; } + ev.preventDefault(); const [col, row] = this.getCartesianCoordinates(ev); this.props.onCellClicked(col, row, { expandZone: ev.shiftKey,