Skip to content

Commit

Permalink
Merge pull request bevacqua#312 from jaw4ik/repeatedly-drop-bug
Browse files Browse the repository at this point in the history
Can't repeatedly drop item" bug fixed
  • Loading branch information
bevacqua committed Feb 9, 2016
2 parents ea2830c + e64150c commit 46054ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dragula.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,7 @@ function dragula (initialContainers, options) {
if (
(reference === null && changed) ||
reference !== item &&
reference !== nextEl(item) &&
reference !== _currentSibling
reference !== nextEl(item)
) {
_currentSibling = reference;
dropTarget.insertBefore(item, reference);
Expand Down

0 comments on commit 46054ae

Please sign in to comment.