mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-27 11:03:40 +03:00
Fix select disable not working for svg (#1523)
- fixed svg elements not preventing start if selectDisable is set on parent
This commit is contained in:
parent
fb737e2021
commit
c3f5566fde
@ -23,7 +23,7 @@ export function DragSelect({
|
||||
if (!isDragSelectionStartEnabled()) {
|
||||
return false;
|
||||
}
|
||||
if (target instanceof HTMLElement) {
|
||||
if (target instanceof HTMLElement || target instanceof SVGElement) {
|
||||
let el = target;
|
||||
while (el.parentElement && !el.dataset.selectDisable) {
|
||||
el = el.parentElement;
|
||||
|
Loading…
Reference in New Issue
Block a user