Skip to content

Commit

Permalink
v4.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI committed Sep 7, 2021
1 parent 8c919c1 commit fffc17c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions dist/vue-tippy.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -5113,8 +5113,13 @@ var plugin = {
function createTippy(el, binding, vnode) {
var handlers = vnode.data && vnode.data.on || vnode.componentOptions && vnode.componentOptions.listeners;
var opts = binding.value || {};
var modifiers = Object.keys(binding.modifiers || {});
opts = Object.assign({}, options, opts);

if (modifiers.length) {
opts.placement = opts.placement || modifiers[0];
}

if (handlers && handlers['show']) {
opts.onShow = function () {
var _handlers$show;
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-tippy.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/vue-tippy.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -5119,8 +5119,13 @@
function createTippy(el, binding, vnode) {
var handlers = vnode.data && vnode.data.on || vnode.componentOptions && vnode.componentOptions.listeners;
var opts = binding.value || {};
var modifiers = Object.keys(binding.modifiers || {});
opts = Object.assign({}, options, opts);

if (modifiers.length) {
opts.placement = opts.placement || modifiers[0];
}

if (handlers && handlers['show']) {
opts.onShow = function () {
var _handlers$show;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-tippy",
"version": "4.10.2",
"version": "4.11.0",
"description": "Directive and Component wrapper for Tippy.js",
"author": "Georges KABBOUCHI <georges.kabbouchi@gmail.com>",
"files": [
Expand Down

0 comments on commit fffc17c

Please sign in to comment.