fix title update on fast drawer change

This commit is contained in:
Collin M. Barrett 2019-08-26 13:06:00 -05:00
parent 885513d96a
commit d0407d8557

View file

@ -30,10 +30,6 @@ export class ListDetailsDrawer extends React.Component<RouteComponentProps & Pro
};
}
componentDidMount() {
document.title = this.props.list.name + " | " + this.state.baseDocumentTitle
}
render() {
return <Drawer
visible={true}
@ -108,6 +104,10 @@ export class ListDetailsDrawer extends React.Component<RouteComponentProps & Pro
</Drawer>
}
componentDidUpdate() {
document.title = this.props.list.name + " | " + this.state.baseDocumentTitle
}
componentWillUnmount() {
document.title = this.state.baseDocumentTitle
}