From 8429d7eb48debded138677bb6142ab852be78710 Mon Sep 17 00:00:00 2001 From: AndrewLester Date: Mon, 8 Feb 2021 15:50:20 -0500 Subject: [PATCH] Add update and destroy to tippy action --- src/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/index.js b/src/index.js index 1f388aa..65b01ab 100644 --- a/src/index.js +++ b/src/index.js @@ -3,4 +3,13 @@ import 'tippy.js/dist/tippy.css'; export default function(node, props) { tippy(node, props); + + return { + update(newProps) { + node._tippy.setProps(newProps); + }, + destroy() { + node._tippy.destroy(); + } + }; }