No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    q-slide-item slot stays shown

    Framework
    2
    3
    390
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      plexus last edited by

      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

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @plexus last edited by

        @plexus index as key is not enough, you need a more unique one since you are removing items from an array.

        1 Reply Last reply Reply Quote 0
        • P
          plexus last edited by

          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!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post