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

    disabled q-item not disabling click on q-item-section

    Framework
    q-item
    4
    6
    881
    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.
    • J
      jitendra16 last edited by

      disabled q-item not disabling click on q-item-section, if we click on disabled q-item then also @click is getting called.

                             <q-item
                                  :disable="true"
                                  tag="label"
                                  v-ripple
                                  v-close-popup
                                >
                                  <q-item-section>
                                    <q-item-label  
                  @click="something()"
                                    >Update</q-item-label>
                                  </q-item-section>
                                </q-item>
      
      dobbel 1 Reply Last reply Reply Quote 1
      • dobbel
        dobbel last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • dobbel
          dobbel @jitendra16 last edited by

          @jitendra16

          disabled q-item not disabling click on q-item-section, if we click on disabled q-item then also @click is getting called.

          Disabled does not prevent click events. @click also still triggers on q-item see:

          https://codepen.io/ontwikkelfabriek/pen/rNWOeXY?

          J 1 Reply Last reply Reply Quote 0
          • J
            jitendra16 @dobbel last edited by

            @dobbel Yes, but it should prevent by default. As of now I am doing this

            @click="!isdisabled && something()"
            
            metalsadman 1 Reply Last reply Reply Quote 0
            • metalsadman
              metalsadman @jitendra16 last edited by metalsadman

              @jitendra16 report it to repo or you could pr to it, no-pointer-events should prevent the clicks and visual ripple even on disable state.

              1 Reply Last reply Reply Quote 0
              • M
                matheusmacedoap last edited by matheusmacedoap

                Esse problema foi solucionado? estou com essa dúvida…
                Has this problem been solved?I have this doubt…

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