From a8d0e51dd5dc0eb85d985232da90d54fd031ae4b Mon Sep 17 00:00:00 2001 From: KazuAlex Date: Thu, 25 Nov 2021 16:46:24 -0500 Subject: [PATCH] fix: effect and type not properly applied at first render --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 1a93a84ce..bc985c49a 100755 --- a/src/index.js +++ b/src/index.js @@ -93,8 +93,8 @@ class ReactTooltip extends React.Component { uuid: props.uuid || generateUUID(), place: props.place || 'top', // Direction of tooltip desiredPlace: props.place || 'top', - type: 'dark', // Color theme of tooltip - effect: 'float', // float or fixed + type: props.type || 'dark', // Color theme of tooltip + effect: props.effect || 'float', // float or fixed show: false, border: false, customColors: {},