A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/issues/4331 below:

Popover directive - content as a method does not receive element as argument · Issue #4331 · bootstrap-vue/bootstrap-vue · GitHub

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:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4