Commit 94a9085
committed
[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: 53442851 parent 60a66b6 commit 94a9085
File tree
4 files changed
+4
-2
lines changed- src/components
- composer/composer
- grid_overlay
- grid
- helpers
4 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
| 472 | + | |
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| |||
0 commit comments