Skip to content

Commit

Permalink
fix: does not trigger drag on mousedown svg (#1396)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia authored Aug 6, 2024
1 parent ea30405 commit 8595ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/main/list/useDragSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const useDragSelection = ({
},
shouldStartSelecting: (e) => {
// does not trigger drag selection if mousedown on card
if (e instanceof HTMLElement) {
if (e instanceof HTMLElement || e instanceof SVGElement) {
return !e?.closest(`.${elementClass}`);
}
return true;
Expand Down

0 comments on commit 8595ccf

Please sign in to comment.