Skip to content

Commit f3b9230

Browse files
committed
Issue: Adding pull= clone doesn't seem to work. Fix: Return from onRemove function if group.pull == 'clone'
1 parent 8b8542b commit f3b9230

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)