Allow better updating if the tooltip is designed to stick around, rather than just appearing on hover
This commit is contained in:
@@ -49,6 +49,14 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
componentDidUpdate: function() {
|
||||||
|
dis.dispatch({
|
||||||
|
action: 'view_tooltip',
|
||||||
|
tooltip: this.tooltip,
|
||||||
|
parent: this.props.parent,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
// Remove the wrapper element, as the tooltip has finished using it
|
// Remove the wrapper element, as the tooltip has finished using it
|
||||||
componentWillUnmount: function() {
|
componentWillUnmount: function() {
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
|
|||||||
Reference in New Issue
Block a user