diff --git a/README.md b/README.md index c685025..dc380a6 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ Sortable.create(el, { Sortable.create(list, { filter: ".js-remove, .js-edit", onFilter: function (evt) { - var item = el.item, + var item = evt.item, ctrl = evt.target; if (Sortable.utils.is(ctrl, ".js-remove")) { // Click on remove button