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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user