From 585d59fb2e5582769f9103f8256a95a2ea65ce46 Mon Sep 17 00:00:00 2001 From: CPatchane Date: Tue, 22 Oct 2019 10:49:21 +0200 Subject: [PATCH] Filter __source and __self dev props Those props are added by babel-preset-react in dev environment --- src/Tippy.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Tippy.js b/src/Tippy.js index 20a6dec..335c79e 100644 --- a/src/Tippy.js +++ b/src/Tippy.js @@ -19,6 +19,11 @@ export function Tippy({ enabled = true, multiple = true, ignoreAttributes = true, + // Filter React development reserved props + // added by babel-preset-react dev plugins: + // transform-react-jsx-self and transform-react-jsx-source + __source, + __self, ...restOfNativeProps }) { const isControlledMode = visible !== undefined;