Problem with popovers
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)
ok problem solved thanks Razvan !
@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.popoverbe an Array rather than an actual Popover. So the solution would be to
v-forusing an index and use
I’m searching to do something similar with datatable, harder because, only one popover appear.