Skip to content

Commit

Permalink
Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
pdgago committed Feb 2, 2017
1 parent a6af32c commit e0fb443
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sortable-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,12 @@
Polymer.dom(fragment).appendChild(item);
});

Polymer.dom(this).appendChild(fragment);
if (this.children[0]) {
Polymer.dom(this).insertBefore(fragment, this.children[0]);
} else {
Polymer.dom(this).appendChild(fragment);
}

this.style.height = '';
this._target.classList.remove('item--dragging');
this._rects = null;
Expand Down

0 comments on commit e0fb443

Please sign in to comment.