From 01e7c783d8833cc4708e6aa6804ef0218eb8f745 Mon Sep 17 00:00:00 2001 From: Binyamin Laukstein <7raivis@inbox.lv> Date: Thu, 10 Sep 2020 23:29:26 +0300 Subject: [PATCH] Fix IE11 "SCRIPT16389: Unspecified error." when dragging element --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 0993b0acb..7a9576acb 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -178,7 +178,7 @@ function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoS height, width; - if (el !== window && el !== getWindowScrollingElement()) { + if (el !== window && el.parentNode && el !== getWindowScrollingElement()) { elRect = el.getBoundingClientRect(); top = elRect.top; left = elRect.left;