Skip to content

Commit

Permalink
Merge pull request #1932 from waynevanson/master
Browse files Browse the repository at this point in the history
fix: (IE11 "SCRIPT16389)
  • Loading branch information
waynevanson authored Sep 24, 2020
2 parents 6d54aa6 + 8d50d58 commit 87c3575
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"packages/plugins/*",
"packages/utils"
],
"version": "1.12.0",
"version": "1.13.0",
"npmClient": "yarn"
}
4 changes: 2 additions & 2 deletions packages/sortable/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@sortablejs/sortable",
"version": "1.12.0",
"name": "@sortablejs/core",
"version": "1.13.0",
"private": true
}
4 changes: 3 additions & 1 deletion packages/utils/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ function getRect(

let elRect, top, left, bottom, right, height, width;

if (el !== window && el !== getWindowScrollingElement()) {
// Fix IE11 "SCRIPT16389: Unspecified error." when dragging element #1904
// submitted by laukstein
if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
elRect = el.getBoundingClientRect();
top = elRect.top;
left = elRect.left;
Expand Down

0 comments on commit 87c3575

Please sign in to comment.