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

    Problem with popovers

    Help
    3
    4
    2003
    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.
    • S
      Sponz last edited by

      Hello guys,
      I have an error when trying to close popovers.
      my markup is this: http://pastebin.com/BQ39b0Mk

      when clicking on the buttons of the popover i am getting the following error:
      Uncaught TypeError: _vm.$refs.popover.close is not a function at Object.click [as fn] (eval at 243 (1.e2343b3….hot-update.js:6), <anonymous>:54:29) at HTMLButtonElement.eval (eval at <anonymous> (app.js:794), <anonymous>:2222:16)

      rstoenescu 1 Reply Last reply Reply Quote 0
      • S
        Sponz last edited by

        ok problem solved thanks Razvan !

        1 Reply Last reply Reply Quote 0
        • rstoenescu
          rstoenescu Admin @Sponz last edited by

          @Sponz Hi, for others seeing this, I gave a solution on Gitter channel. Turns out that those buttons were used inside of a v-for. As a result, using same reference name “popover” made $refs.popover be an Array rather than an actual Popover. So the solution would be to v-for using an index and use @close="$refs.popover[index].close()".

          1 Reply Last reply Reply Quote 4
          • kenium
            kenium last edited by

            I’m searching to do something similar with datatable, harder because, only one popover appear.

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