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

    disable qtooltip

    Help
    3
    4
    460
    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.
    • E
      elperro88 last edited by

      Hi,

      Is there any smooth way to disable the qtooltip of button X when the button menu is open?

      If qtooltip had the disable directive would be very nice I think and could easily bind it to a v-model variable of the menu.

      <q-btn dense flat no-wrap>
                  <q-tooltip>AAA</q-tooltip>
                  <q-icon name="arrow_drop_down" size="16px" />
      
                  <q-menu auto-close >
                    <q-list dense>
                      <q-item class="GL__menu-link-signed-in">
                        <q-item-section>
                          <div>Signed in as <strong>Mary</strong></div>
                        </q-item-section>
                      </q-item>
                 </q-list>
      </q-btn>
      

      Only way I found is quite ugly e.g.

      • in the qmenu: define v-model variable and @before-show who runs this.$refs.tooltip_ref.hide()
      • in the qooltip: define the ref=“tooltip_ref” and @before-show who also runs this.$refs.tooltip_ref.hide()
      1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman last edited by

        @elperro88 use v-model and make it false to hide it.

        1 Reply Last reply Reply Quote 0
        • E
          elperro88 last edited by

          true, but then while the menu is open, could also hover again in the button and see again the tooltip

          1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by

            https://github.com/quasarframework/quasar/issues/5385

            Scott

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