Retrieve ID of element deleted using swipeout

I am trying to identify the element (specifically an ID) that is deleted using a swipeout. The swipeout triggers, and the listener works, however I can’t get the element.

        $('.deleted-callback').on('swipeout:deleted', function (item) {
          console.log(item);
        });

always gives: {“isTrusted”:false}

Hopefully something simple I am missing?

$('.deleted-callback').on('swipeout:deleted', function (e) {
  console.log(e.target);
});
1 Like