Commit 2dd6732
authored
Fix IE11 "SCRIPT16389: Unspecified error." when dragging element
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.1 parent 88838bf commit 2dd6732
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
0 commit comments