Skip to content

Commit

Permalink
[FIX] Highlight: prevent default mousedown behaviour
Browse files Browse the repository at this point in the history
Just like in commit a3b2e7c, we need to prevent the default mousedown
behaviour while interacting with the `Highlight`Component as it can be
active at the same time as the `Composer`.

closes #3061

Task: /
X-original-commit: 457b8c7
Signed-off-by: Adrien Minne (adrm) <[email protected]>
  • Loading branch information
rrahir committed Oct 24, 2023
1 parent caf94ee commit b13f90e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/highlight/border/border.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<t t-name="o-spreadsheet-Border" owl="1">
<div
class="o-border"
t-on-mousedown="onMouseDown"
t-on-mousedown.prevent="onMouseDown"
t-att-style="style"
t-att-class="{
'o-moving': props.isMoving,
Expand Down
2 changes: 1 addition & 1 deletion src/components/highlight/corner/corner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<t t-name="o-spreadsheet-Corner" owl="1">
<div
class="o-corner"
t-on-mousedown="onMouseDown"
t-on-mousedown.prevent="onMouseDown"
t-att-style="style"
t-att-class="{
'o-resizing': props.isResizing,
Expand Down

0 comments on commit b13f90e

Please sign in to comment.