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/commit/ea0cbda below:

ensure reference to trigger element is… · bootstrap-vue/bootstrap-vue@ea0cbda · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+5

-5

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+5

-5

lines changed Original file line number Diff line number Diff line change

@@ -193,10 +193,10 @@ const applyPopover = (el, bindings, vnode) => {

193 193

// and content if they are functions

194 194

const data = {}

195 195

if (isFunction(config.title)) {

196 -

data.title = config.title()

196 +

data.title = config.title(el)

197 197

}

198 198

if (isFunction(config.content)) {

199 -

data.content = config.content()

199 +

data.content = config.content(el)

200 200

}

201 201

if (keys(data).length > 0) {

202 202

el[BV_POPOVER].updateData(data)

@@ -233,7 +233,7 @@ const applyPopover = (el, bindings, vnode) => {

233 233

// If title/content is a function, we execute it here

234 234

newData[prop] =

235 235

(prop === 'title' || prop === 'content') && isFunction(data[prop])

236 -

? data[prop]()

236 +

? data[prop](el)

237 237

: data[prop]

238 238

}

239 239

})

Original file line number Diff line number Diff line change

@@ -193,7 +193,7 @@ const applyTooltip = (el, bindings, vnode) => {

193 193

// Before showing the tooltip, we update the title if it is a function

194 194

if (isFunction(config.title)) {

195 195

el[BV_TOOLTIP].updateData({

196 -

title: config.title()

196 +

title: config.title(el)

197 197

})

198 198

}

199 199

})

@@ -225,7 +225,7 @@ const applyTooltip = (el, bindings, vnode) => {

225 225

// We only pass data properties that have changed

226 226

if (data[prop] !== oldData[prop]) {

227 227

// if title is a function, we execute it here

228 -

newData[prop] = prop === 'title' && isFunction(data[prop]) ? data[prop]() : data[prop]

228 +

newData[prop] = prop === 'title' && isFunction(data[prop]) ? data[prop](el) : data[prop]

229 229

}

230 230

})

231 231

el[BV_TOOLTIP].updateData(newData)

You can’t perform that action at this time.


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