q-slide-item slot stays shown
-
Is there any way to autohide the item in case of a deletion without sliding the item back using the reset() method?
Here’s an example:
https://codepen.io/azapater/pen/YzXJmdo
if you slide it from right to left it executes the reset() method and it hides, but it doesn’t look very mobile friendly because it’s not the standard behaviour you see in other apps.
If you slide it from left to right it just deletes the item but the slot stays shown.
Thanks
-
@plexus index as key is not enough, you need a more unique one since you are removing items from an array.
-
solved! I didn’t know key in v-for was that critical in the scope and I’ve always used the index as key. In my real project I’ve assigned the uid of the item and it worked like a charm! thanks!