Skip to content

Commit 5a968d6

Browse files
committed
Fixed crash if falsy value
1 parent 4b60011 commit 5a968d6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/v-tooltip.browser.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/v-tooltip.common.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "v-tooltip",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "Easy tooltips with Vue 2.x",
55
"main": "dist/v-tooltip.common.js",
66
"unpkg": "dist/v-tooltip.browser.js",

src/v-tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default {
4848
},
4949
update (el, { value, modifiers }) {
5050
if (!value) {
51-
destroyTooltip()
51+
destroyTooltip(el)
5252
} else if (el._tooltip) {
5353
el._tooltip.drop.content.innerHTML = value
5454
} else {

0 commit comments

Comments
 (0)