Skip to content

Commit b2aaeb3

Browse files
authored
Merge pull request #13 from sravan-s/pull-clone-issue
Issue: Adding pull= clone doesn't seem to work. Fix: Return from onRe…
2 parents 8b8542b + f3b9230 commit b2aaeb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

polymer-sortablejs.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@
101101
},
102102

103103
onRemove: function(e) {
104+
// Donot remove if group.pull is clone
105+
if (e.target.group.pull === 'clone') {
106+
return false;
107+
}
104108
if (template) {
105109
template.splice("items", e.oldIndex, 1)[0];
106110
}

0 commit comments

Comments
 (0)