Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
fix(): persistence of show/hide tooltip status
Browse files Browse the repository at this point in the history
tooltip will now show when user presses a node then will have the show/hide status persist for different clicks of each node
  • Loading branch information
hopetambala committed Jul 24, 2019
1 parent 3ea946c commit 3928c43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/features/tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class TooltipControls extends React.Component {
constructor(props){
super(props)
this.state = this.initialState;
this.state = {
...this,
show:true
}
}

get initialState(){
Expand All @@ -24,7 +28,7 @@ class TooltipControls extends React.Component {
width:"300px",
position: [200,200],
currentLabel:"",
show: true,
//show: true,
note: {
id:'',
note:{
Expand Down

0 comments on commit 3928c43

Please sign in to comment.