Skip to content

Commit

Permalink
Fix #32 service tooltips not initialized properly
Browse files Browse the repository at this point in the history
tooltips have to be rebuilt when services are added (ReactTooltip seems to cache them at first render)
  • Loading branch information
haraldox committed Jan 16, 2018
1 parent cd25aa3 commit 8765b8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/layout/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export default class Sidebar extends Component {
this.setState({ tooltipEnabled: false });
}

componentDidUpdate() {
ReactTooltip.rebuild();
}

render() {
const { openSettings, toggleMuteApp, isAppMuted } = this.props;
const { intl } = this.context;
Expand Down

0 comments on commit 8765b8f

Please sign in to comment.