mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Allow better updating if the tooltip is designed to stick around, rather than just appearing on hover
This commit is contained in:
parent
bf4e3364b4
commit
cb101b0a3b
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
componentWillUnmount: function() {
|
||||
dis.dispatch({
|
||||
|
|
Loading…
Reference in a new issue