I use framkework7 swipeout to delete products in my app.
When i swipe to left or right it remains in that position; than a dialog with cancel and ok is showing.
If i press ok > it removes the product
on cancel only the dialog is hidding, the product <li>
remains swiped.
Can't find no callback to hide/swipe back to right my product.
This is my code:
<li class="swipeout deleted-callback" data-id="my-id-xxx">
....
<div class="swipeout-actions-right">
<a href="#" data-confirm="Delete?" class="swipeout-delete swipeout-overswipe">Delete</a>
</div>
</li>
$('.deleted-callback').on('swipeout:deleted', function() {
deleteProduct($(this).data('id'));
});
Is this a bug or it's just me? Any help with that please?
Thanks