You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -118,8 +118,8 @@ The component was designed to set a `<Reactooltip />` one place then use tooltip
118
118
>I suggest always put `<ReactTooltip />` in the Highest level or smart component of Redux, so you might need these static
119
119
method to control tooltip's behaviour in some situations
120
120
121
-
### 2. Hide tooltip when getContent returns null or undefined
122
-
When you set `getContent={() => {return null}}` or `getContent={() => {return}}` you will find the tooltip will dispaly `true`, that's because React will set the value of data-* to be 'true' automatically if there is no value to be set. So you have to set `data-tip=''` in this situaction.
121
+
### 2. Hide tooltip when getContent returns undefined
122
+
When you set `getContent={() => {return}}` you will find the tooltip will dispaly `true`, that's because React will set the value of data-* to be 'true' automatically if there is no value to be set. So you have to set `data-tip=''` in this situaction.
0 commit comments