Gitlab is now using https://gitlab.lcsb.uni.lu as it's primary address. Please update your bookmarks. FAQ.

Commit 020c859c authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Updating tooltip lib

parent 154232c3
Pipeline #7111 passed with stages
in 5 minutes and 55 seconds
{
"name": "fractalis",
"version": "1.2.12",
"version": "1.3.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......@@ -17282,9 +17282,9 @@
"dev": true
},
"popper.js": {
"version": "1.12.9",
"resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.12.9.tgz",
"integrity": "sha1-DfvC3/lsRRuzMu3Pz6r1ZtMx1bM="
"version": "1.14.4",
"resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.14.4.tgz",
"integrity": "sha1-juwdj/AqWjoVLdQ0FKFce3n9abY="
},
"portfinder": {
"version": "1.0.13",
......@@ -19490,11 +19490,11 @@
"optional": true
},
"tippy.js": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/tippy.js/-/tippy.js-2.2.2.tgz",
"integrity": "sha512-3m3AgK8Hfgz2Yk/qcF090YSj3XsTSeOulE1botaN/ZLLE8YkSbdHqvCJiTMlA8EURyFi3JrReCD54E7ei3HwZQ==",
"version": "3.0.6",
"resolved": "https://registry.npmjs.org/tippy.js/-/tippy.js-3.0.6.tgz",
"integrity": "sha512-/paH+Kf3Caj0J+AlB1Kdg2KFAZ8yJeXZ8hPiwDBfxOLZg3YxDUa2OpMi3ODK8TXSMoPqcGUExCVcc46AmGCxjQ==",
"requires": {
"popper.js": "^1.12.9"
"popper.js": "^1.14.4"
}
},
"tmp": {
......
......@@ -7,15 +7,12 @@ import tippy from 'tippy.js'
export default {
bind (el, binding) {
const addTooltip = (event) => {
const target = event.target || event.srcElement
tippy(target, Object.assign({
performance: true,
arrow: true,
dynamicTitle: true
}, binding.value))
el.removeEventListener('mouseover', addTooltip)
}
el.addEventListener('mouseover', addTooltip)
tippy(el, Object.assign({
performance: true,
arrow: true
}, binding.value))
},
update (el) {
el._tippy.setContent(el.getAttribute('title'))
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment