Skip to content

Commit

Permalink
Merge pull request #146 from phamtuan2993/master
Browse files Browse the repository at this point in the history
Check shown is function before call
  • Loading branch information
tvkhoa committed Aug 21, 2020
2 parents b2e430e + ca6ae5d commit c6e6169
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Tooltip/js/tippy.js
Expand Up @@ -254,7 +254,9 @@ class Tippy {
// Prevents shown() from firing more than once from early transition cancellations
data._onShownFired = true

this.callbacks.shown.call(popper)
if (typeof this.callbacks.shown === 'function') {
this.callbacks.shown.call(popper)
}
})
})
}
Expand Down

0 comments on commit c6e6169

Please sign in to comment.