sforkowany z mirror/soapbox
Set collapse in a totally different function instead
rodzic
8e44e72d8e
commit
dcc21221a5
|
@ -58,6 +58,14 @@ export default class StatusContent extends React.PureComponent {
|
|||
link.setAttribute('title', link.href);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
setCollapse() {
|
||||
const node = this.node;
|
||||
|
||||
if (!node) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
this.props.collapsable
|
||||
|
@ -70,7 +78,13 @@ export default class StatusContent extends React.PureComponent {
|
|||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.setCollapse();
|
||||
this._updateStatusLinks();
|
||||
}
|
||||
|
||||
componentDidUpdate() {
|
||||
this.setCollapse();
|
||||
this._updateStatusLinks();
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue