Skip to content

Fix IE11 "SCRIPT16389: Unspecified error." when dragging element - #1904

Closed
laukstein wants to merge 1 commit into
SortableJS:masterfrom
laukstein:patch-2
Closed

Fix IE11 "SCRIPT16389: Unspecified error." when dragging element#1904
laukstein wants to merge 1 commit into
SortableJS:masterfrom
laukstein:patch-2

Conversation

@laukstein

Copy link
Copy Markdown

IE11 throws error "SCRIPT16389: Unspecified error." when dragging element after Sortable.create(...) was executed more than 1 time while in same page (without page reload).
This issue happens also in Sortable earlier versions, and due to this error may stop Sortable functionality at all.

Using el.parentNode for simplest fix checking if element sort of exists in DOM (by checking if parent element exists). Universal fix would be to use document.body.contains(el), but I think it is too much here and would cause small performance impact, that's way fixing it is simple way.

@waynevansonwaynevanson mentioned this pull request Sep 24, 2020
owen-m1 added a commit that referenced this pull request Dec 30, 2020
Runi-c pushed a commit to Tupperbox/Sortable that referenced this pull request Nov 10, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@laukstein