Describe the bug
In documentation it says that a directive as a function should receive argument with reference to element: "A function reference to generate the content of the popover (receives one argument which is a reference to the DOM element triggering the popover)"
But none is received i got undefined
Steps to reproduce the bug
<b-img :key="index" v-b-popover.hover="zoomImage" v-bind="thumbProps" left :src="item" alt="Image 1"></b-img>
methods:{ zoomImage(el) { console.log(el); return '<img src="'+el.src+'">'; } }
Expected behavior
Should receive reference to get content from hovered element
Versions
Libraries:
- BootstrapVue: 2.0.4
- Bootstrap: 4.3.1
- Vue: 2.6.10