Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

laukstein
Copy link

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.

Sign up for free to 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