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

    v-touch-hold problem

    Help
    2
    2
    210
    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.
    • M
      mordvash last edited by

      I’m trying to use v-touch-hold without success ,
      Iwhen a user clicks on an item for a second a dailog will appear
      this is my code:
      <edit-task :popup=“popup” style=“display: none”/>
      <q-list class=“text-white” separator bordered>
      <q-item
      v-for=“task in tasks”
      v-touch-hold:1000.mouse=“edit(task)”
      :key=“task.taskID”
      @click=“taskTransition(task)”
      clickable
      v-ripple>
      <q-item-section side top>
      <q-checkbox
      class=“no-pointer-events”
      :value=“task.completed”/>
      </q-item-section>
      </q-item>
      </q-list>

      edit(task){
      this.popup.status = true
      },

      The problem is that it runs the function edit(task) , as the number of times tasks length
      and then v-touch-hold does not work
      Thanks!

      1 Reply Last reply Reply Quote 1
      • F
        Franlafrossia last edited by

        This codepen helped me.
        https://codepen.io/anon/pen/ZVgZNz

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