Skip to content

Commit 70ce3ad

Browse files
Use false as initial value of internal state in the component controlled
1 parent f79b497 commit 70ce3ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TooltipTrigger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default class TooltipTrigger extends PureComponent {
8787

8888
state = {
8989
tooltipShown: this._isControlled()
90-
? undefined
90+
? false
9191
: this.props.defaultTooltipShown || false
9292
};
9393

0 commit comments

Comments
 (0)