Skip to content

Commit 8765b8f

Browse files
author
haraldox
committed
Fix #32 service tooltips not initialized properly
tooltips have to be rebuilt when services are added (ReactTooltip seems to cache them at first render)
1 parent cd25aa3 commit 8765b8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/layout/Sidebar.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ export default class Sidebar extends Component {
5050
this.setState({ tooltipEnabled: false });
5151
}
5252

53+
componentDidUpdate() {
54+
ReactTooltip.rebuild();
55+
}
56+
5357
render() {
5458
const { openSettings, toggleMuteApp, isAppMuted } = this.props;
5559
const { intl } = this.context;

0 commit comments

Comments
 (0)