From 9334d9796666c6d72f6b564f50e3527cb0647cac Mon Sep 17 00:00:00 2001 From: Federico Zivolo <5382443+FezVrasta@users.noreply.github.com> Date: Wed, 23 Sep 2020 15:06:32 +0200 Subject: [PATCH 1/2] feat: pass Tippy instance to render prop --- src/Tippy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tippy.js b/src/Tippy.js index 9b3681e..ea649f7 100644 --- a/src/Tippy.js +++ b/src/Tippy.js @@ -221,7 +221,7 @@ export default function TippyGenerator(tippy) { {mounted && createPortal( render - ? render(toDataAttributes(attrs), singletonContent) + ? render(toDataAttributes(attrs), singletonContent, mutableBox.current) : content, mutableBox.container, )} From 3085fdbb399ca690868d3c61c528dbcc3c58b615 Mon Sep 17 00:00:00 2001 From: Federico Zivolo <5382443+FezVrasta@users.noreply.github.com> Date: Thu, 24 Sep 2020 15:08:39 +0200 Subject: [PATCH 2/2] Update Tippy.js --- src/Tippy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tippy.js b/src/Tippy.js index ea649f7..9559c2e 100644 --- a/src/Tippy.js +++ b/src/Tippy.js @@ -221,7 +221,7 @@ export default function TippyGenerator(tippy) { {mounted && createPortal( render - ? render(toDataAttributes(attrs), singletonContent, mutableBox.current) + ? render(toDataAttributes(attrs), singletonContent, mutableBox.instance) : content, mutableBox.container, )}